What is the use of the Clear Hidden Field Values setting?

  • ashutoshjaihind
    Asked on December 8, 2017 at 8:48 AM
    Clear Hidden Field Values

    Clearing values of conditionally hidden fields.

  • David JotForm Support Manager
    Replied on December 8, 2017 at 11:46 AM

    Please see this example on how to use the Clear Hidden Field Values setting, which has 3 options:

    1) Don't Clear

    2) Clear on Being Hidden

    3) Clear on Submit

    On this example the option is set to "Don't clear":

    1512750629dontclear Screenshot 10

    As you can see on that example, the user selected Football as his preferred sport, and entered his favorite player. However, he decided that Baseball was his preferred sport, and entered his favorite baseball player. What will happen if he submits the form? Both of the fields that ask for his favorite player will contain a value:

    1512750887both Screenshot 21

    So, in order to prevent receiving answers on fields that were not supposed to receive an answer, you could either set the:

    -Clear on being hidden option, if you want the values to clear as soon as the field is hidden:

    1512751227clearonbeinghidden Screenshot 32

    OR

    -Clear on Submit, which will clear the value of the hidden field after the form is submitted.


    I hope this helps. Let us know if you have more questions.

  • ashutoshjaihind
    Replied on December 9, 2017 at 11:53 AM

    Thankyou for ur explanation.

    now see my form  https://form.jotform.me/72024036284449


    this form has hidden fields which are permanently hidden, these are used to make the calculation easy. These hidden fields  start with a prefix--> H . some of the fields are H shipping charges, H GR. Total

    when i set this condition to >> clear on submit , the value of these fields is not clearing and is shown up in form data when somebody fill out the form and I receive the mail of the form.




    https://form.jotform.me/72024036284449https://form.jotform.me/72024036284449https://form.jotform.me/72024036284449

  • Mike_G JotForm Support
    Replied on December 9, 2017 at 3:48 PM

    You have mentioned that the fields are hidden permanently. Which, from what I understand, the fields are hidden by default from their properties, is that correct?

    If that is the case, then the fields are not affected by the "Clear Hidden Field Values" settings because the fields are not "conditionally hidden".

    1512852413t15 38 39 Screenshot 10

    To conditionally hide the fields in your form, please see this guide — How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

  • Mike_G JotForm Support
    Replied on December 9, 2017 at 3:55 PM

    Just to add:

    If you do not want to include the hidden fields in your form to the email notification you receive when you form is successfully submitted, you can try to edit the content of the email notification and erase manually the fields you don't want to be included.

    1512852890t15 53 24 Screenshot 10

    If you have other questions or concerns, please feel free to contact us again anytime.

  • ashutoshjaihind
    Replied on December 10, 2017 at 6:01 AM

    thanks Mike, that is the thing that i would do.