How to show empty hidden fields in email?

  • nhamwey
    Asked on December 11, 2017 at 5:07 PM

    I am using 4 Image Pickers that appear individually depending on an image selected on another Image Picker widget, while the other three are hidden.

    The email that the user receives appears to be correct with the proper {} but only the image shown when the user hits submit, is sent in the email.

  • Richie JotForm Support
    Replied on December 11, 2017 at 5:29 PM

    You can show Hidden Fields in your email notification  by clicking ADVANCED in your email settings.

    How to show empty hidden fields in email? Image 1 Screenshot 30

    scroll down until you find Hide Empty Field and toggle it to NO

    How to show empty hidden fields in email? Image 2 Screenshot 41


  • nhamwey
    Replied on December 11, 2017 at 5:59 PM

    Thanks, I still have a couple of questions though.

    When someone edits their submission, it shows the fields that are normally hidden, is there a way to have the form appear the same way as normal with their selected options filled in?

    Why does my {fastestLap}, {sector1}, etc. show up as the image on the form (correct) but shows up as text (incorrect) on the recipient email?


  • Mike_G JotForm Support
    Replied on December 11, 2017 at 8:12 PM

    When someone edits their submission, it shows the fields that are normally hidden, is there a way to have the form appear the same way as normal with their selected options filled in?

    I see that you have already asked this from another thread that you have created and I believe you are satisfied with my colleague's answer from that thread — https://www.jotform.com/answers/1320187

    However, if you want to have the images to stay in the Text Field as described in the image below even in edit mode

    1513039984t19 50 35 Screenshot 10

    You need to set the "Clear Hidden Field Values" settings to "Don't Clear".

    1513040306t19 54 13 Screenshot 21

    Why does my {fastestLap}, {sector1}, etc. show up as the image on the form (correct) but shows up as text (incorrect) on the recipient email?


    I have checked the email content of the email autoresponder in your form and I see that you are posting the value of the textbox fields where the link to the images are passed conditionally to show the selected image. Instead of doing that, use the Image Picker widgets in the email autoresponder content as shown in the screenshot below.

    1513040844t20 01 01 Screenshot 32

    As a result:

    1513041034t20 09 Screenshot 43


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

  • nhamwey
    Replied on December 11, 2017 at 8:34 PM

    I had changed the email so it no longer contained the {} for the Image pickers.

    It actually does not seem to be a problem with the email displaying the images. If you see my form, I have 1 Image Picker widget with 4 options, that controls 4 other Image Picker widgets.

    In the emails I am receiving, I get only 1 Image Picker {} return, that is the image not hidden when the ENTER button is pressed.

    I hope this makes sense and appreciate the help.

  • David JotForm Support Manager
    Replied on December 11, 2017 at 9:28 PM

    I have cloned your form, and tested it, and found out that the "Clear hidden field values" was set to "clear on submit". Please set it to "Don't clear", and all the selected images will show up:

    1513045671don'tclear Screenshot 10

    Example:

    1513045597myteam Screenshot 21

  • nhamwey
    Replied on December 11, 2017 at 9:34 PM

    Perfect, thank you very much.

  • David JotForm Support Manager
    Replied on December 11, 2017 at 9:40 PM

    Welcome. :-)