How to show or hide fields based on users answer

  • contactpixel54
    Demandé le 5 août 2023 à 08:26

    bonjour, après avoir essayer la creation de formulaire, je ne vois pas comment ajouter un champ conditionnel. C'est à dire par exemple si la personne répond à une question A elle me renvoi vers le champ B, d'où le principe du formulaire intelligent. mais je trouve pas l'option sur votre interface

  • Rhina Jotform Support
    Répondu le 5 août 2023 à 11:11

    Hi Sarah,

    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.

    To conditionally show fields based on users answers, this is possible with Conditions feature. Let me show you how to set it up:

    1. On your My Forms page, hover your mouse over your form and click on Edit Form.
    2. In Form Builder, click on the Add Form Element menu and drag-drop the fields you want to use as follow-up questions (Short Text fields are used in this example).
    3. Click on the Type a Question text and change it to the question you want to use.

    How to show or hide fields based on users answer Image 1 Screenshot 40

    Now, let's set up the conditions:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page.
    3. Now, click on Add a New Condition and then click on Show/Hide Field.
    4. Set the conditions like you see below:
    • IF: Do you have a dog or a cat? (this is the question that has the choice that the form submitter needs to select)
    • STATE: Is Equal To
    • VALUE: Dog (the first choice)
    • DO: Show
    • FIELD: What is the name of your dog? (the follow-up question that you want to show)

    How to show or hide fields based on users answer Image 2 Screenshot 51

    Set up Conditions for all of the choices for your question. Check out the screencast below to see how your form will work after setting up the Conditions:

    How to show or hide fields based on users answer Image 3 Screenshot 62

    You can also checkout the guide here on how to show or hide fields based on the users answer.

    Give it a try and let us know how it goes.