Hide/show/hide?

  • Profile Image
    peytonmusic
    Asked on November 02, 2017 at 02:18 PM

    In this form, when values 2 or 3 are input for size of family, two hidden required fields show. Ideally, I'd like for whichever one you select, the other hides (and is no longer required).

    Disabling and unrequiring the field not selected would work too but that's not working either.

    I know I'm creating conflicts by placing a "hide" condition after a "show" and wondered how I might get around it. Btw, I cloned the form so I could tinker without messing up those using it at the same time. Thanks!

  • Profile Image
    david
    Answered on November 02, 2017 at 02:37 PM

    For conditions to show fields, set up the specific conditions to show the field and then the field will only be shown when those conditions are met.  Fields that are shown conditionally are hidden by default.

    If you want only certain fields to be shown when 2 is the value, set up a single condition for 2 and then another condition for when the value is 3.  That way when 2 is entered, only the fields for 2 will be shown.  When 3 is entered, only the fields for 3 will be shown.  Currently your form looks to have a single condition for both:

    1509647819Capture.PNG

    If this is not what you were looking to do, let us know a bit more detail regarding the setup required and we will be happy to assist you further.


  • Profile Image
    peytonmusic
    Answered on November 02, 2017 at 03:00 PM

    Thanks for replying, David.

    In response to your JotForm Jedi-like wisdom, I created two separate conditions for 2 and 3 and made them both visible in the Build area, not knowing they are hidden by default with a "show" condition. Thanks! It didn't seem to change the behavior though.

    Here's the idea:

    If 2 or 3 are entered, I want both SA and SWV to fields to show and be required -- it's working like that now. 

    However, I want to prevent someone from entering both of those options. My preference is to hide the option not selected so it is no longer an option.

    Example: a family is put in at 3. The two options for "Traditional baskets for smaller families (SA)" and "Traditional...(SWV)" show are are required (so volunteers can't submit forms without having selected a basket). When they select the (SA) basket, the (SWV) baskets hides and the form can be submitted.

    Am I making any sense here, bro?

  • Profile Image
    david
    Answered on November 02, 2017 at 03:12 PM

    I see what you are trying to do.  When one of the gift registry widgets is selected, the other should be hidden.  The conditions you have set up should work as intended.  I am looking into why they are not and a possible alternative.  I will update this thread as soon as I have a solution.

  • Profile Image
    peytonmusic
    Answered on November 02, 2017 at 03:18 PM

    I figure it's because the "hide" condition is subordinate to a "show" condition and I'm over my head there. If I change the condition hierarchy it works, but then those gift registry fields show by default. Thanks for checking into it!

  • Profile Image
    aubreybourke
    Answered on November 02, 2017 at 03:36 PM

    Still no update from David yet. He should post a response via this thread as soon as it is possible for him.

  • Profile Image
    david
    Answered on November 02, 2017 at 04:28 PM

    Apologies, I got caught up elsewhere.  It looks like the gift registry widgets are not reporting the if filled conditions appropriately.  Something like this should have taken care of all scenarios:

    1509652711Capture.PNG

    This setup does, however, appear to work with inventory widgets instead of gift registry widgets.  Here is my example form:

    https://form.jotform.com/73056169452964

    You can clone it to your own account if you would like:

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL