réinitialiser

  • Abrisud
    Demandé le 23 novembre 2016 à 04:46

    Bonjour,

    j'aimerai savoir comment réinitialiser mon fichier avec un menu déroulant.

    j'ai un bouton menu déroulant, quand je change de produit dans se menu j'aimerais que tout mon fichier se vide, se réinitialise.

    Merci beaucoup

  • omerorkun Jotform Data Scientist
    Répondu le 23 novembre 2016 à 06:20

    Hi,

    I see that you have fields that are shown or being hidden conditionally. I have also checked the preferences of your form. I see that you have already enabled the option "Clear Hidden Field Values". It is set to "Clear on being hidden". This should work partially. 

    However, to clear all your fields based on the selections at the dropdown field is not possible to manage with conditions. What I can think of is a reset button. 

    Normally reset button appears next to the submit button. However you can reposition it and make it appear right after the dropdown field. Here is how you can do it:

    1. Add a text field after the dropdown field:

    réinitialiser Image 1 Screenshot 30

    2. Paste this code inside the text field:

    <p style="text-align: right;"><button id="input_reset_65a" class="form-submit-reset icon-encrypt" type="reset"> Vider le formulaire </button></p>

    Please see how it looks like: 

    réinitialiser Image 2 Screenshot 41

    You can add a hover text to the dropdown field which instructs your users to reset the form upon changing their selections at the dropdown. 

    Please let us know if it helps. 

    Do contact us again if you need any further assistance.