Forums

Change email text depending on values

nephilim89 19 Mar, 2014
Hi! 😀 I got this problem:

I have a drop-down and a textbox(called 'part_n'). The textbox can be disabled or enabled depending on what you check on the drop-down. It works good.
My problem is in the email template: even if the textbox is disabled, in the email body there will be {part_n} .

What I need is to send the email with the textbox value, if the textbox is enabled; BUT if the textbox is disabled i want a blank "" space.

I don't know how to solve it
Thank you
GreyHead 19 Mar, 2014
Answer
Hi nephilim89,

In ChronoForms v4 there is an option in the Email action settings to hide any empty values like this. Alternatively you can use PHP either to set a default value, or to skip that part of the template.

Bob
nephilim89 19 Mar, 2014
Ah, Replace NULLs!!
Thank you!
This topic is locked and no more replies can be posted.