
I'm looking to add some conditional content using the statement below:
{{#if (eq contact.contractstate 'Settled')}}
Dummy text for settled contracts.
{{else}}
Dummy text for all other contracts.
{{/if}}
The field contact.contractstate is a 'choice' data type. Could this be the reason why I'm getting this error?
> Dynamic content contains a conditional statement that compares values of different types: {{#if (eq contact.ava_contractstate 'Settled')}}.
Hi Lauren,
As you said: The field contact.contractstate is a 'choice' data type.
For the choice column, it has two components: Label and Value.
You should use value in your conditional content, like this:
{{#if (eq contact.contractstate 1)}}
...