PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Notification Output Customization

  1. Is there any way to conditionally control the output of the notifications?? Let say if there is one field that is not filled out, then that value won't appear and its label won't appear either??

    Thanks in advance!
    ~Carvache

    Posted 13 years ago on Friday December 17, 2010 | Permalink
  2. This works by default when using the all_fields variable/merge code in Notifications. It outputs a nicely formatted table of all of the form data that was submitted, it does not output fields with empty values.

    If you are manually building your notification using the form field variables, then there is currently no way to not output it if the value doesn't exist. We plan on enhancing the variables in a future release to provide for this type of functionality.

    Posted 13 years ago on Friday December 17, 2010 | Permalink
  3. motto
    Member

    Is this feature currently available?
    It would be very nice to only display a field label (or some other text), in the notification to the customer, only if a specific field contains a value.

    Thanks in advance.
    Motto

    Posted 13 years ago on Thursday November 10, 2011 | Permalink
  4. I've got a similar question. I need to output brackets around a date picker field value in the subject of an email IF the user chooses a date. I want there to be no brackets if there's no date chosen. This email is being used to generate a task in our project management system, and it'll set a due date if a date is present in brackets. If there's no date, the empty brackets become part of the task, which just looks awkward. So, given that, is there any way to format brackets around the date field for output into email?

    Posted 13 years ago on Thursday November 10, 2011 | Permalink
  5. Currently there is no way to selectively output static text depending on the value of a field. It is a feature we plan on adding but we have to determine the best way to handle it so that it is user friendly and intuitive to use. But it is something we plan on adding.

    Posted 13 years ago on Thursday November 10, 2011 | Permalink
  6. motto
    Member

    Are there any new developments concerning this feature?

    Posted 12 years ago on Wednesday May 30, 2012 | Permalink
  7. David Peralty

    You could use the following:
    http://www.gravityhelp.com/documentation/page/Gform_merge_tag_filter

    So you would check if each field is empty, and if so, return nothing. This should exclude both the label and value from the notification e-mail.

    Posted 12 years ago on Wednesday May 30, 2012 | Permalink