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

  • Profile Image
    ashutoshjaihind
    Asked on December 08, 2017 at 08:48 AM
    Clear Hidden Field Values

    Clearing values of conditionally hidden fields.

  • Profile Image
    BDAVID
    Answered on December 08, 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.gif

    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.png

    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.gif

    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.

  • Profile Image
    ashutoshjaihind
    Answered on December 09, 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

  • Profile Image
    Mike_G
    Answered on December 09, 2017 at 03: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.png

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

  • Profile Image
    Mike_G
    Answered on December 09, 2017 at 03: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.png

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

  • Profile Image
    ashutoshjaihind
    Answered on December 10, 2017 at 06:01 AM

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