Forums

how to customize the mail template with the "if"

MorenoPrima 05 Feb, 2019
Hi,
I have a field {data: check1}.
if this field is checked then write: "<tr><td>{data:check1}</td></tr>"
else doesn't write anything.
Its possible this control inside the emails template?

Thanks,
Moreno
healyhatman 05 Feb, 2019
Build the email body text in a Custom Code block. Code it just like you would a HTML / PHP page (including open and closing PHP tags, echo statements, etc), set it to return as var. Then use {fn:custom_code_name}{var:custom_code_name} in your email body.
This topic is locked and no more replies can be posted.