Hiding output that has no value in emails - pseudocode
In your emails that are sent to users and admins there is often a list of values that the form has generated.
You can hide the 'empty' values using psuedocode in the email output.
example:
Say you want to output the value of a field with Text.
You want to show 'Lot No 347', where '347' is the value taken from the form.
For the first value in the list - lot01-value - you will therefore use
Lot No: {lot01-value}
If lot01-value is empty then the email will still 'Lot No:' in the output.
You can hide the 'Lot No:' word by using an {if} statement to hide the text if there is no value - as follows:
{if {lot01-value}}Lot No: {lot01-value} {/if}
Now 'Lot No: ' wil only show in the email if there is a value in the field.
- Hits: 8