Mandatory field validator for hidden fields

hi guys,

for a mandatory field validator, is there any consideration we need to make for when the input field is hidden?

i.e. i have some form logic to show / hide fields.
if this field is mandatory but hidden, i dont want the mandatory field validator to stop the form submission.

is there anything i need to consider here? there doesn't appear to be a "disable" property on the validator

would a custom validator be the way to go here, is there a way to use a "IF field XYZ is visible / enabled THEN mandatory, ELSE do nothing"

There is a Visible property which you can use.
found it :smiley:

thanks @korchev