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.


  • Profile Image

    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

    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!

    Page URL:
    http://www.jotform.com//?formID=60133292346955

    then style parent all and
  • Profile Image

    Answered by SunbridgeInstitute 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!

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 14, 2016 at 02: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.

  • Profile Image

    Answered by SunbridgeInstitute on January 20, 2016 at 03: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
  • Profile Image

    Answered by SunbridgeInstitute on January 20, 2016 at 03: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!

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 20, 2016 at 04: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 : 

    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.

  • Profile Image

    Answered by SunbridgeInstitute on January 21, 2016 at 01: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!

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 21, 2016 at 02: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.

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 21, 2016 at 03: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 ? 

    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.

    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.