How to hide empty fields on email notifications

  • Profile Image
    callaway
    Asked on June 27, 2013 at 03:33 PM

    Hello. First of all I want to say I love Jotform. I started to use it on a non-profit project and now recommend it to all my clients. Using Jotform has saved in incredible amount of time--where before I had to code all these manually using JS and PHP. Jotform is a time saver!

     

    My question is this. I'm making a groccery list and have fields such as apple, watermelon, strawberry. Would it be possible to get email notification with the field with value. I see this list becoming really long.

    eg) Strawberry == 1, watermelon == null, apple == 1

     

    My email notification wiil be

    Strawberry == 1

    Apple == 1

     

    Rather then...

    Strawberr == 1

    Watermelon == Null

    Apple == 1

     

    Thanks and keep up the good work

  • Profile Image
    pinoytech
    Answered on June 27, 2013 at 04:42 PM

    Hi,

    I've clone your form and made some workaround on it. Can you please take a look at this if this is what you want to received on your email notification?

    Thank you!

  • Profile Image
    callaway
    Answered on June 27, 2013 at 04:44 PM

    Hello Mr. B,

    Thank you for looking into to it. What I was wondering was if it could only email me field that had a value bigger then NULL. Using your data the email would look...

     

    Apple 1

    Avocado 2

     

    Thanks in advance

  • Profile Image
    jeanettebmz
    Answered on June 28, 2013 at 01:43 AM

    We currently have the Hide Empty Fields on Emails - This is very useful for long forms with non-required fields.So I think it should work for you

    Enabling this feature will remove all the empty fields on submission emails.

    To Enable this

    1. Click on Setup&Embed

    2. Click on Preferences at the toolbar

    3. Go to Advanced Settings and Enable the Hide Empty Fields feature

    Note that this would only work for "Default Email Notifications". We do not support this for edited or modified version of notification emails.

    If you still have doubts about this, please let us know

  • Profile Image
    callaway
    Answered on June 28, 2013 at 01:46 AM

    /epic-answer

    Thank you so much!! Exactly what I was looking for. :) 

     

    Thank you so much!!! 

  • Profile Image
    gori-mathew
    Answered on June 28, 2013 at 03:38 AM

    On behave of my colleagues you are welcome, do enjoy using Jotform.

    Thanks!