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

    Form Conditions: showing and hidding a field based on values of other fields

    Asked by uclaparent on October 23, 2015 at 11:39 AM

    Hi there,

     

    I'm struggling to get various conditions to work in my form, specifically:

    1) I have a "check all that apply" option, and when a guest selects a certain item I want it to show another field (When selecting "Alumni" I want the "Grad Year(s)" field to appear.  When selection "Parents' Council Member" I want "Your student(s) Grad Years" field to appear ---Unless these particular fields are checked (in any combination with other options), I would prefer both fields remain hidden.  --Currently, when any item is selected, BOTH fields appear.

     

    2) Same conditional issue with "Number of guests attending".  If this field is unfilled OR "1", I would like the "Additional Guest" & "Additional Guest 2" fields to remain hidden.  ---If the "Number of guests attending" field is "2" then I would ONLY like the first "Additional Guest" field to appear (Currently, BOTH "Additional Guest" & "Additional Guest 2" fields appear when this is input).

    I feel I correctly conditioned the fields to do what I would like but they still act in error.  Any assistance would be helpful! :)

    Here is the jotform in it's current state https://form.jotform.com/52947727419973

    Thanks!

    Page URL:
    https://form.jotform.com/uclaparent/bgs-thanksgiving-rsvp

    adding hidden check Selection
  • Profile Image

    Answered by Ben on October 23, 2015 at 02:17 PM

    After cloning the form and looking into the conditions I see the issue. Please note that you should not use both show and hide conditions. Or to say better, both should be used in only specific cases.

    When you set a condition like such (basic math example):

    if x equals 2 then show field1

    you can see that as two rules instead:

    1. If x equals 2 then show field1

    2. if x is not equal to 2 then hide field1

    Knowing that, all that we need to do is to make either hide or show condition. I somehow always preferred show over hide (unless it is needed), so we can change the conditions from:

    to:

    As soon as you do - it works :)

    Now the same is the case with the other field group, so instead of:

    to

    You can see how it looks and works by checking out this form: https://form.jotform.com/52955515127963

    If you wish, you can also clone it to your account for closer inspection as well: How to Clone an Existing Form from a URL

    No matter if you do clone it or not, we are here so feel free to contact us back with any questions or issues and we would be happy to assist with the same.

  • Profile Image

    Answered by uclaparent on October 23, 2015 at 07:19 PM

    Great, thank you!