0

On a form with optional line inputs, how do I require input on a field if another field was filled in?

In my example I have a page of multiple rows of name input fields with each name field having an associated age input field.

Any help would be appreciated.

I know you can set the age field with a required validation rule and use a visibility rule to hide the control until a name is typed in but I'm trying to keep all of the input boxes visible.

I've tried using a required if name field is not null but that doesn't work. I've also tried using a required unless and having the name field as the checked variable and nothing as the checked value. This worked but when deleting the name field, the age field is still required.

0 Answers0