Show Fields If Answered Option is Yes

  • drkaul
    Asked on August 25, 2016 at 5:07 AM

    Hallo Jotform,

    is it possible to built a form like this: the first question is a "yes" oder "no" question und if the user click "yes" than a new form should be open. by "no" the form is closed. how is it possible to make?

    wie kann ich eine "Wenn Ja, dann"-Frage einstellen?

    Ich möchte im Formular eine Frage stellen, auf die zuerst mit "ja" oder "nein" geantwortet werden soll, wenn "Ja" geklickt wird, soll ich ein weiteres "Pflichtfeld" mit einer weiteren Frage/Texteingabe öffnen.

    Wie geht das?

     

    Gruss

    Alexander

     

  • Chriistian Jotform Support
    Replied on August 25, 2016 at 9:28 AM

    Hi,

    If I understand it correctly, you have several questions/fields but you want them to be shown/hidden conditionally based on the answer to a first 'Yes or No' question. If so, please take the following steps.

    1. Create a radio button field in your form with Yes or No options. 

    Show Fields If Answered Option is Yes Image 1 Screenshot 50

    2. Create 2 sets of questions - one will show if Yes is selected. Otherwise, the other set will show.

    Show Fields If Answered Option is Yes Image 2 Screenshot 61

    3. Setup the conditions as per the logic in item 2.

    Show Fields If Answered Option is Yes Image 3 Screenshot 72

    The result should be as follows.

    Show Fields If Answered Option is Yes Image 4 Screenshot 83

    Check my demo form here. You can clone it if you want.

  • drkaul
    Replied on August 25, 2016 at 9:54 AM

    thank you very much.

    i make it.

    one question. is it also possible to say, the "additional question ifyes", "must" be answered, but only if it is yes.

  • Chriistian Jotform Support
    Replied on August 25, 2016 at 11:12 AM

    Do you mean you want to set the "Additional Question if Yes" required? If so, you can turn on the "Additional Question if Yes" field Required setting. 

    Show Fields If Answered Option is Yes Image 1 Screenshot 20

     

    This way, when the field is shown (user chooses Yes option), the user will not be able to submit the form without inputting a value or answering the additional question. You can check the demo form here: https://form.jotform.com/62373509719968.