What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to show/hide fields based on user input ?Asked by SunbridgeInstitute on January 14, 2016 at 12:45 PM
I have a situation where I have 2 similar but distinct questions. Sometimes they are both showing depending on the selections, but I only want one of them to show. Is there any way to code this?
"Where will you be working?" is the question that should override "Which school(s) are you affiliated with?"
Both questions come up when a person selects the following under "What is your affiliation with Waldorf education":
Any of these three:
Parent of Waldorf Student
Waldorf School Asum
Relative of Waldorf Student
Any of these five:
I want the "Where will you be working" (associated with Board Member, Teacher, Administrator, etc) to override the "Which school(s) are you affiliated with" (associated with Parent/Alum/Relative) so that the later does not appear at all even though Parent/Alum/Relative was chosen.
How can this be done? Thank you!
then style parent all and
Nevermind; the answer just hit me: if X is filled, then hide Y. Thank you so much!
Great to know you found a workaround.
Please, feel free to contact us anytime if you need more help, we will be glad to assist you.
This solution is not working because it causes unexpected results on the other conditions. It forces Y to show up when I otherwise did not want it to. Are there any other solutions (to my original question)?
Here is my form: https://www.jotform.com//?formID=60143546937964
Here is the condition that is now causing my issues:SHOW / HIDE FIELDIFWhere will you be working this fall?IS FILLEDHIDEWhich school(s) are you affiliated with?HIDEWhat is your profession, and where?
oops--posting did not work. Here is the condition that is now causing my issues:
If Where will you be working this fall? is filled
Hide Which school(s) are you affiliated with?
Hide What is your profession, and where?
I have temporarily disabled this condition, but I need to resolve this quick because this form is live.
I cloned the form you shared us : http://www.jotformpro.com/form/60143546937964
I tried to replicate your issue, but I was unable, I have enabled the condition to show the fields and it worked on my end, see my result :
Take a look to my cloned form : https://form.jotform.com/60196507967972
Test the conditions and you will see that are working.
Please, enable the condition that is not working in your form, we will make some tests in order to replicate your issue.
We will wait your response.
Yes, the condition is working properly, but I am having unexpected problems by adding this particular condition. It makes the "what is your profession" and "which schools are you affiliated" question pop up where it should not, and in some cases the "where will you be working this fall" is not even there to allow a user to hide those two questions. It's a little hard to explain.
The biggest problem is when a user chooses "General Interest" or "None" for "What is your affiliation with Waldorf Education." The only questions that should appear for this selection are "list any other relevant coursework" and "What is your profession" and "what attracted you to this course". But instead I am getting "which schools are you affiliated" which totally doesn't make sense in this scenario, and there is no way for the user to ignore this confusing question (I would rather not confuse my users).
Hopefully I have explained it well enough so you can understand the dilemma. This particular solution to my original question is not a workable one for this particular form. I understand why it doesn't work, which is why I am hoping there is a different solution.
Thank you for providing us more information.
Please, allow me some time, I will take a look into your form, I will check all the conditions you are talking about and I will get back to you as soon as possible.
Upon checking your form, I found that there are more than one conditions related to those fields, for example, I can see the fields are hidden by default, but when I load the form, the fields are shown.
For example, these are the conditions related to the field What is your profession and where ?
These are the conditions for the field Which School are you affiliated with ?
Now, here is the current result that you are talking about the selection for the field What is your affiliation with Waldorf Education (past or present)?.
If you would like to hide the field Which school(s) are you affiliated with? and avoid get confused your users, then you should add this to your condition :
This is the result :
If you would like to Hide/Show some fields similar to this, then you would have to add more conditions like that.
We will wait for your response.