Form validation only checking when something is entered

lawrence whittemore asked on February 1, 2016 14:29

I have a field that is hidden based on another field (which works fine) but when it is visible I want it to be required. I tried setting a min length rule on the field but it only checks when there is text in the field, if it is left empty it ignores the rule. I can't make the field required because if it doesn't show the form wont submit. Is there another way to set the validation to make sure something is there when the field is visible?

Recent Answers


Roman Hutnyk answered on February 1, 2016 17:24 (last edited on February 1, 2016 19:57)

Have you tried to implement your custom validation rule @ Macro Rules -> Form Validation?

Disregard my answer - custom rule seems to be ignored unless there is some value entered into the field. :(

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on February 2, 2016 14:52

Hello,

well, if you have any required field in your form, you can add the validation there since you can check a value of another field as well. If there is no required field in your form, you can add one just for the validation and make it invisible.

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.