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
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
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.
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
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?
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.
Are there any new developments concerning this feature?
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.