I'm trying to create a customizable signature by preferred language of the contact in the Design Manager. I'm using this code but it doesn't work, can anyone help me
do you mean the preffered language by the HubSpot user (your colleagues;the ones who got access to the portal) or the reciepient (CRM data)?
A few things:
If you want to display the text based on the HubSpot users language, you'll need to input the text into the placeholder field of a text field, create a translations of the module (right sidebar of the module) and change the placeholder value in each language. <-- Never done this, but technically I can imagine that it will work. If you want to display the text based on the reciepients language it should work.
Values are case-sensitive. Just mentioning this because you got "english" lowercase and everything else is not.
To see the outcome of if-statements with personalization tokens you have to preview the module on a page/post/email with a contact that has the property. This means: If you preview the page/post/email with a contact that has this property set to english, you will see the english translation. If you preview the same asset with a contact that has a different value in the property it should display it differently.
You can seperate the logic from the layout to have it more maintainable. See example below
do you mean the preffered language by the HubSpot user (your colleagues;the ones who got access to the portal) or the reciepient (CRM data)?
A few things:
If you want to display the text based on the HubSpot users language, you'll need to input the text into the placeholder field of a text field, create a translations of the module (right sidebar of the module) and change the placeholder value in each language. <-- Never done this, but technically I can imagine that it will work. If you want to display the text based on the reciepients language it should work.
Values are case-sensitive. Just mentioning this because you got "english" lowercase and everything else is not.
To see the outcome of if-statements with personalization tokens you have to preview the module on a page/post/email with a contact that has the property. This means: If you preview the page/post/email with a contact that has this property set to english, you will see the english translation. If you preview the same asset with a contact that has a different value in the property it should display it differently.
You can seperate the logic from the layout to have it more maintainable. See example below