Conditional Fields (NEW! Liquid Templates)

Updated 2 years ago by Royna SunderRajan

Conditional Fields

This is our current template syntax as of 2022. If you are not used to this format, please check out our legacy template article Conditional Fields (Legacy)
Summary

Make a field optional if some employees use it and some do not. It will display for employees who use it, and will be automatically removed from the signature for employees who do not.

Tip: you can wrap the if statements around any signature elements to make them appear only if that field is used - {% if field %} {{field}} {% endif %}
You can make any field a conditional field - Title, mobile, email, etc.

If conditional field is on it's own line:

HTML code view

How it shows up to the recipient (if either field is removed, the separator line is removed too!):

If conditional fields share the same line:

HTML code view

Signature preview with logic

How it shows up to the recipient (if either field is removed, the separator line is removed too!):

Need "not if" logic? We have that too! Wrap with {% unless field %} Alternative Text {% endunless %} instead. for example: {% unless phone %} 1-800-MAINLINE {% endunless %}


How did we do?