How can I create nested conditionals that re-hide fields when user backtracks...

  • elron
    Asked on December 23, 2015 at 9:27 PM

    Hi,

    I have the following nested conditional set up:

    Radio Field X:  Choose YES or NO

    if Radio Field X is = YES, then show Radio Field A

    -- if Radio Field A = yep, then show Text Field A-sub-1

    -- if Radio Field A = nope, then do nothing

    if Radio Field X = NO, then show Text Field B

     

    It works, but there is a problem when the user backtracks. For example, the user sets Radio Field X = YES, (Radio Field A appears), the user sets Radio Field A = yep, (Text Field A-sub-1 appears), THEN the user changes his mind... he goes back to Radio Field X and set it to NO. Now the user sees both Text Field A-sub-1 and Text Field B. That's the problem. He should only see Text Field B. How do I re-hide Text Field A-sub-1 in this situation?

    Thanks!

  • BJoanna
    Replied on December 24, 2015 at 2:53 AM

    If I understood you correctly you are talking about radio button fields on page 4 of your form. So if on first radio button field option Yes is selected and on second field option Yes is also selected additional text box fields will shown. However if user changes his mind and select No option on first field additional text box fields are still shown, but they should be hidden. 

    I have inspected your conditions and you to not have condition to hide those fields if option No is selected. You need to create condition to hide those fields is No is selected.

    How can I create nested conditionals that re hide fields when user backtracks Screenshot 20

    Here is my demo form: https://form.jotform.com/53571672778974 

    Feel free to clone it

    Hope this will help. Let us know if you need further assistance.

  • elron
    Replied on December 25, 2015 at 12:44 AM

    Thanks for your response. 

    I solved the challenge in a different way. Here's how:

    I changed the conditional on Radio Field A. Now the logic is as follows:

     

    Radio Field X:  Choose YES or NO

    if Radio Field X is = YES, then show Radio Field A

    -- if Radio Field A = yep, AND Radio Field X = YES,  then show Text Field A-sub-1

    -- if Radio Field A = nope, then do nothing

    if Radio Field X = NO, then show Text Field B

     

    Now it works perfectly. If the user sets Radio Field X to YES, then sets Radio Field A to yep, but then backtracks and re-sets Radio Field X to NO; then, the user only sees Text Field B. Perfect.

  • BJoanna
    Replied on December 25, 2015 at 2:36 AM

    We are glad to hear that you were able to solve your issue, with different approach.

    Feel free to contact us if you have any other questions.