Hide empty fields in email notification and customize / add headers

  • juliapei
    Asked on September 22, 2015 at 10:58 AM

    Hi,

    I have many fields that will probably remain empty and will need to remain hidden in the email notification. However, I would also need to customize the email form, but when I go to unlock the email form for customization, it tells me that Unlocking enables customization, but loses the ability to hide empty fields. Is there any way for me to customize how the fields appear and also hide any empty fields?

     

    Thanks,

    Julia 

  • victor
    Replied on September 22, 2015 at 12:28 PM

    Hi,

    You may hide empty fields in the email notification by

    1) press the PREFERENCE button

    Hide empty fields in email notification and customize / add headers Image 1 Screenshot 30

    2) In the preference window, please go to the ADVANCE SETTING.  You can enable to HIDE EMPTY FIELDS.

    Hide empty fields in email notification and customize / add headers Image 2 Screenshot 41

    Please let us know if this helps.

    Regards

     

  • juliapei
    Replied on September 22, 2015 at 12:31 PM

    Victor,

    Yes I am able to do this. However, I would also like the ability to customize the format of my email notification, and when I click "unlock data table", it tells me that it will lose the ability to hide empty fields. My question is, is there a feature that enables me to customize my email notification AND hide the empty fields, as it seems one must exist without the other. 

    Thanks!

    Julia 

  • KadeJM
    Replied on September 22, 2015 at 2:00 PM

    Actually, you should be able to modify your email notification template to customize it the way you want it to look. At that point you can then go back into your form preferences and re-enable the feature for hiding empty fields.

    It does that because this is the way it compares the notification setup since otherwise it would break your email notification since you are customizing it. This is the reason for the warning and the unlock first even though it can be re-enabled to apply it again. Alternatively, just lock it again. The warning you see about going back to the default just means that it will revert back to how you had it as if it was locked in the first place.

    I have tested this for you to confirm it.

    In this screenshot below there is no image even though the I've applied the hide empty fields.

    Hide empty fields in email notification and customize / add headers Image 1 Screenshot 50

    In this screenshot I unlocked it, added and image, then re-locked it after adding custom image as a quick and easy test.

    Hide empty fields in email notification and customize / add headers Image 2 Screenshot 61

    Here are the results I got after filling in all of the fields on this form and also after leaving one empty in which it works as expected.

    In the first one you can see the checkbox option and in the second one I left those empty and they were hidden.

    Both showed the Custom Image I added to do a quick and easy customization inside the email template to check it which means you can customize it then enable hiding empty fields.

    Hide empty fields in email notification and customize / add headers Image 3 Screenshot 72

    Hide empty fields in email notification and customize / add headers Image 4 Screenshot 83

  • juliapei
    Replied on September 23, 2015 at 11:18 PM

    Thank you for this very helpful demonstration. I am able to do it in the blue field, however, when I tried to edit the "question" and "Answer" part of it... deleting it, for example, it always reverts to the original content and format when I lock it again. Please let me know if this is something I am doing incorrectly.

     

    Thanks again!

    Julia

  • Ashwin JotForm Support
    Replied on September 24, 2015 at 7:34 AM

    Hello Julia,

    Unfortunately it is not possible to edit the "question" and "Answer" section of email alert. If you edit and then lock the data table again, the whole section will revert to original state. Please check the screenshot below:

    Hide empty fields in email notification and customize / add headers Image 1 Screenshot 20

     

    Unfortunately, there is no workaround to solve this issue. For the hide empty fields to work, the data table should be locked.

    Thank you!