---
title: "Conditional Fields (NEW! Liquid Templates)"
slug: "conditional-fields-new-liquid-templates"
updated: 2024-01-16T21:02:01Z
published: 2024-01-16T21:02:01Z
canonical: "help.opensense.com/conditional-fields-new-liquid-templates"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.opensense.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional Fields (NEW! Liquid Templates)

## Conditional Fields

This is our current template **as of 2022**. If you are not familiar with/used to this format, please check out our legacy template article [Conditional Fields (Legacy)](https://opensense.document360.io/docs/conditional-fields-pre-2022-legacy)**Tips:**  

- You can make any field a conditional field
- Make a field optional if some employees use it, and some do not. It will automatically be removed from the final email signature for employees who do not use the optional field
- You can wrap IF statements around any signature element to make them appear **only** if that field is used ({% if field %} {{field}} {% endif %})

## If Conditional Field on It's Own Line

- HTML Code View ![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/conditionalFields1.png)
- Recipient's View (If either field is removed, the separator line is removed too!) ![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/conditionalFields2.png)

## If Conditional Fields Share the Same Line

- HTML Code View ![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/conditionalFields3.png)
- Signature preview **with logic** ![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/conditionalFields4.png)
- Recipient's View (If either field is removed, the separator line is removed too!) ![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/conditionalFields5.png)

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