FR: Give context to RED.validators.typedInput

Hi team,

Would it be possible to give a context to RED.validators.typedInput?

I would like to validate inputs in a container with typedInput validator but for now it's not possible because the global context is used and without having to create my own typedInput validator :sweat_smile: (which is just a copy)

Just change

$("#node-"+(isConfig?"config-":"")+"input-"+ptypeName).val()

by

$(this).find("#node-"+(isConfig?"config-":"")+"input-"+ptypeName).val()

A new type option has been added (#4440) and allows to statically define the type of the field. Which simplifies the idea of the context because in the end the field only has one type which is accessible when the validator is called. So I close as resolved :slightly_smiling_face:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.