How to Show/Hide fields based on users answer

  • jeremie.moinereau
    Demandé le 28 septembre 2023 à 05:26

    Bonjour,


    je souhaiterai afficher un message si une personne clique une réponse.

    J'ai un formulaire dont la première question est "votre situation = Propriétaire / locataire"

    Je voudrais afficher un message immédiat "vous n'êtes pas éligible" si la personne clique sur locataire.

    J'ai trouvé comment faire mais uniquement pour que le message s'affiche une fois que la personne a tout rempli. Comment faire pour que le message s'affiche immédiatement ?

  • Chris_L Jotform Support
    Répondu le 28 septembre 2023 à 08:26

    Hi Jeremie,

    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. I see that you're using the Change Thank You Page conditional logic, with this set up, the user will need to click the submit button before they can see the message. I recommend you disable the Change Thank You Page condition and use Skip To Page instead. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the Basic tab, scroll down to Paragraph, and drag and drop a Paragraph element to your form.
      How to Show/Hide fields based on users answer Image 1 Screenshot 50
    3. Click on the Settings tab in the orange navigation bar at the top of Form Builder.
    4. Select Conditions on the left side of the screen.
    5. Click +Add a New Condition.
      How to Show/Hide fields based on users answer Image 2 Screenshot 61
    6. Select Skip To/Hide A Page and then set the conditions just like you see below.
      How to Show/Hide fields based on users answer Image 3 Screenshot 72
    7. Finally, click on Save.

    Here's a screencast of the expected form behavior:

    How to Show/Hide fields based on users answer Image 4 Screenshot 83

    Give it a try and let us know if you need any help.

  • jeremie.moinereau
    Répondu le 2 octobre 2023 à 04:12

    Hi ! Awesome thanks :)


    How can i prevent tenants from sending the form / validating the form ?

    When they click on "envoyer" / "send" it leads to an empty line in our google sheets :/

  • Jeric Jotform Support
    Répondu le 2 octobre 2023 à 06:15

    Hi Jeremie,

    Thanks for reaching back to us. I moved you concern to a different thread. Please check our response here.

  • jeremie.moinereau
    Répondu le 23 octobre 2023 à 05:25

    Sorry for the delay. You saved me :) Thanks a lot for your help !! :D