We are having an issue with dynamic content based on an option set value. Multiple education preferences are available. Based on selections we want to show content.
When setting up the email, an error is shown. Can someone explain why the error is shown and what might be a solution.
Option set values en titles
Code
Error
Translation:
Dynamic content contains a conditional statement that compares values of different types:
Hi,
Based on your description of the error, The types of sides to be compared are not the same.
So you need check the field’s type and value you are using in the code:
Go to Settings > Customizations > Customize the system > Entities > Contact > Fields.
And you need ensure that add correct field in the dynamic content:
Not writing name directly, you can use Personalization{} to get it, then add other contents.
I can use the following code to save and test email successfully.
{{#if (eq contact.preferredcontactmethodcode 948150000)}}
true
{{else if (eq contact.preferredcontactmethodcode 948150001)}}
false
{{/if}}
Have you tried to use other fields that type is option set? Same error?
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156