- mioswebdesignsAsked on January 29, 2013 at 11:48 AM
I'm building a form and I have a radio button form element with two options; yes or no. I also have various other elements in my form that preceed this yes or no radio button element. What I want to do is create a conditional statement in my form, where if the user selects "yes" then all the form other elements become optional elements to fill out, and if they select "no" all the other form elements become REQUIRED elements.
I included the link to my form http://form.jotform.us/form/23527467501150
Basically the question "Are you a Health Care Provider?" with choices "Yes" or "No" is where I need the conditional trigger. If user selects Yes, then all other form elements that come after that question can toggle to optional. If user selects No, then all other form elements that come after that question can toggle to required.
Thanks for you help!
- JotForm SupportjonathanAnswered on January 29, 2013 at 01:08 PM
There is really no condition property that will make a field required or not -- using the form builder.
You can probably do it using the form's source code and inject your own funciton code that make a field required/not required on a given logic condition.
There is a workaround without resulting to using the form's source code -- but this not making a field required/not required (it only gives that illusion). You can review the details on this discussion thread -Making-a-field-required-depending-on-previous-answer . Specifically, it is the suggestion offered by NeilVicente.
Hope this help. Please tell us if this work for you, or not..
- mioswebdesignsAnswered on January 29, 2013 at 02:01 PM
Your suggested work around worked perfectly, since I can choose which required fields to hide if "yes" is chosen. Thank you very much for the quick response and thanks also to NeilVicente for the original post.
- mioswebdesignsAnswered on January 29, 2013 at 02:08 PM
Once I save a "Show / Hide a form field" condition in the Conditions Wizard, how do I go back in and modify that condition? I marked the fields I wanted to hide, and then noticed I need to make an adjustment to what I selected. Do I have to recreate my condition all over again? Or is there a "edit existing Show / Hide a form field" option somewhere that I'm not seeing?
- JotForm SupportjonathanAnswered on January 29, 2013 at 02:21 PM
You are probably referring to your saved conditions. Please use the visual guide below
Please inform us if this is not what you were looking for.