I have three custom fields on contacts module (0/1 value). My goal is to show/hide some text sections on email template depending on those fields value.
Is it possible ?
1 Like
I’ve seen people asking for the possibility of using Smarty conditionals in Email Templates, I agree it would be quite useful, but currently is not an option.
You could try tweaking the PHP code where it’s replacing the variables to add some logic of your own.
see maybe this
Hi,
One option can be to create another field, apply your condition in Logic Hook, and then based on the condition put the email template text into that new field. And then simply use that new field into the email template.
This can be a good option if you want to add some fixed text.
This is just a self created solution !!!
Thanks
1 Like
That’s exactly what I thought. I’ll try this way.