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 can I create nested conditionals that re-hide fields when user backtracks...

    Asked by elron on December 23, 2015 at 09: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!

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

    hide fields create nested how
  • Profile Image
    JotForm Support

    Answered by BJoanna on December 24, 2015 at 02: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.

    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.

  • Profile Image

    Answered by elron 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.

  • Profile Image
    JotForm Support

    Answered by BJoanna on December 25, 2015 at 02: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.