How to show/hide fields based on user input ?

  • SunbridgeInstitute
    Asked 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

    AND

    Any of these five:

    Board Member
    Staffer/Administrator
    Volunteer/Intern
    Teacher
    Tecaher assistant

    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!

  • SunbridgeInstitute
    Replied on January 14, 2016 at 12:50 PM

    Nevermind; the answer just hit me: if X is filled, then hide Y. Thank you so much!

  • Kevin Support Team Lead
    Replied on January 14, 2016 at 2:39 PM

    Hi,

    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.

    Regards.

  • SunbridgeInstitute
    Replied on January 20, 2016 at 3:30 PM

    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 FIELD
  • SunbridgeInstitute
    Replied on January 20, 2016 at 3:34 PM

    oops--posting did not work. Here is the condition that is now causing my issues:

    Show/Hide Field

    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.

    Thank you!

  • Kevin Support Team Lead
    Replied on January 20, 2016 at 4:59 PM

    Hi,

    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 : 

    How to show/hide fields based on user input ?  Image 1 Screenshot 20

    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.

    Thanks.

  • SunbridgeInstitute
    Replied on January 21, 2016 at 1:21 PM

    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!

  • Kevin Support Team Lead
    Replied on January 21, 2016 at 2:51 PM

    Hi,

    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.

    Thanks.

  • Kevin Support Team Lead
    Replied on January 21, 2016 at 3:36 PM

    Hi,

    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 ? 

    How to show/hide fields based on user input ?  Image 1 Screenshot 70

    How to show/hide fields based on user input ?  Image 2 Screenshot 81

    These are the conditions for the field Which School are you affiliated with ? 

     

     How to show/hide fields based on user input ?  Image 3 Screenshot 92

    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)?.

    How to show/hide fields based on user input ?  Image 4 Screenshot 103

    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 :

    How to show/hide fields based on user input ?  Image 5 Screenshot 114

    This is the result :

    How to show/hide fields based on user input ?  Image 6 Screenshot 125

    If you would like to Hide/Show some fields similar to this, then you would have to add more conditions like that.

    Take a look to my cloned form and let us know if it works as you need : https://form.jotform.com/60205343210942 

    We will wait for your response.

    Thanks.