Conditional Logic issue with validation
-
Hello!
I need help with my registration form. I have 2 context issues with conditional logic and validation.
First, I have a radio button to know if my member wants to receive our newsletter. Options are Yes/No. If member ckecks Yes than I show a list of checkboxes so they can add their preferences. Ckeckboxes are By email/By mail. They have to check at leat 1 checkbox. The problem is that when they select No at first, the form won’t submit because of the mandatory checkboxes that are hidden. The form should ignore hidden fields when validating the form.
Also I noticed that when I submit the form and there are errors triggered, neither my radio buttons no my checkboxes are ckecked anymore…
Second, I have a radio button asking if they want to provide their clinic information. Again Yes/No. If answer is Yes I show a bunch of other text fields that are required. If I check No the form will still validate the hidden fields.
How can I fix this? Is this a bug or am a not setting my form correctly?
Thanks for your help.
MD
- The topic ‘Conditional Logic issue with validation’ is closed to new replies.