How to show different questions depending on the answer?

  • emmarouxdeluze
    Demandé le 20 février 2024 à 13:48

    Bonjour,

    Je voulais savoir s'il y a un widget ou autre ou l'on peut répondre à une question et en fonction de la réponses (par exemple "oui") cela redirige vers une autre question.

    En gros si on peut poser des questions avec des "sous-conditions".

    Merci beaucoup de votre aide.

    Cordialement,

    Emma

  • Gian_D Jotform Support
    Répondu le 20 février 2024 à 14:09

    Hi Emma,

    Thanks for reaching out to Jotform Support. Unfortunately, our French Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. We have multiple ways to do that using Conditional Logic. I cloned your form and applied one of the options to achieve that functionality. Check out the screencast below:

    How to show different questions depending on the answer? Image 1 Screenshot 60

    As you can see, it leads to a different question page depending on the answer provided to the first field. Let me show you how to do it:

    First, let's add a Single Choice element, and pages to your form:

    1. In Form Builder, click on Add Form Element on the left side of the page, and drag and drop a Single Choice element to your form.

    How to show different questions depending on the answer? Image 2 Screenshot 71

    2. Create multiple pages on your form. In this example, I added two Short Text elements to create two pages.

    How to show different questions depending on the answer? Image 3 Screenshot 82

    Now, we need to create a condition for your fields. Let's do it:

    1. Click on Settings in the orange navigation bar at the top of the screen, and in the menu that opens on the left side of the page, click on Conditions.
    2. Click on Add Condition, and select Skip to/Hide Page.

    How to show different questions depending on the answer? Image 4 Screenshot 93

    3. Copy the settings below, and click on Save.

    How to show different questions depending on the answer? Image 5 Screenshot 104

    4. Repeat the same steps for your other option.

    That's it. Let us know if you have any other questions.