Show hidden field in email submission

  • kauseway
    Asked on October 3, 2016 at 11:21 AM

    I have a field that sometimes is shown and sometimes is hidden. I want it to show on the email submission form so we can see it, every time. Any way to do that?


    https://form.jotform.com/62388791050157

     

    It is the promo code field

  • David JotForm Support
    Replied on October 3, 2016 at 2:59 PM

    If the field is filled, it should be shown in the email notification regardless of whether or not it is shown in the form.  If there is something entered in that field, it should be showing in the email even when hidden.

  • kauseway
    Replied on October 6, 2016 at 3:26 PM

    right. but it isnt.

  • David JotForm Support
    Replied on October 6, 2016 at 4:46 PM

    I cloned your form to test it and all of the hidden fields in the form that were filled are showing in the email notification:

    Show hidden field in email submission Image 1 Screenshot 20

    Under what conditions is the promo code field being hidden?  The other fields in the form that are currently hidden were included in each test I made.  Are there certain circumstances where those are not included as well?  Let us know what you can and we will be happy to have another look.

  • kauseway
    Replied on October 6, 2016 at 9:43 PM

    type in 25friend in promocode. It causes it to be hidden and then doesnt show up.  I would like for it to show up.

  • Kevin Support Team Lead
    Replied on October 6, 2016 at 11:30 PM

    I can see what you're referring to, but this currently happens because the form is set up to clear hidden fields when the form is submitted, I would suggest you to set the form to do not clear hidden fields, to do it click on the preferences icon: 

    Show hidden field in email submission Image 1 Screenshot 50

    Then go to the advanced tab and click on the show more button: 

    Show hidden field in email submission Image 2 Screenshot 61

    Then set the field "Clear Hidden Field Values" to do not clear:

    Show hidden field in email submission Image 3 Screenshot 72

    Once you do this the field will be included in the email notification even when it is hidden: 

    Show hidden field in email submission Image 4 Screenshot 83

    Hope this helps.