Display Signature Elements Based on Field Value (Liquid Templates Only)

Updated 4 months ago by Tori Scharadin

This is our current template syntax as of 2022. If you are not used to this format, please check out our legacy templating articles
Summary

Create conditions to display a specific signature element based on the value in an employee directory field

Example

{% case location %}

{% when “New Jersey”, "NJ" %}

555 Highpoint Lane 

Englewood, NJ 07631 

{% when "Atlanta", "ATL" %}

1234 Pleasant Street

Atlanta, GA 30301

{% else %} 

1234 HQ Lane

Louisville, KY 40210 

{% endcase %} 

Input:

Output:


How did we do?