Hi everyone! I have a quick question about email t...
# general
v
Hi everyone! I have a quick question about email templates. Is it possible to include if and else if conditions in them? I have a template that already contains if and else if conditions. It works perfectly with the standard email sending process (using the logo I’ve attached). The problem is that we use a button that trigger a script to send the email. However, when I use the buttons, the if statements are not considered. Have you ever encountered such an issue?
j
Hi Victor, While I am not sure why it is not executing on button click, You could convert the logic to a UE & client script and have the if/else conditions in the script
v
Hi @Jacob Sapecky thanks for the reply! Yes I finally put the HTML directly in the script and it works perfectly. I will try to investigate when I have more time on why it didn’t wanted to work using the email templates
1