Change email text depending on values

How to hide empty form fields in ChronoForms email notifications.

Overview

The email template displays placeholder tags for disabled form fields, even when those fields are left empty.
Enable the "Replace NULLs" option in the CF Email action settings to automatically hide any empty values from the final email.

Answered
ne 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
Gr 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
This topic is locked and no more replies can be posted.