Forums

Conditional Email content

dungsmile4242 23 Apr, 2018
Hallo I need to make the content of the email partly depending on some checkboxes or radiobuttons.I
tried following in the email template, but the if condition seems not
to work. BTW the variable mitgliedwerden is a checkbox with a field
value 1. I also have a radiobutton condition which I need to use for
some part of the content
<table>
GreyHead 23 Apr, 2018
Hi dungsmile4242,

The way I do this is to use a Custom Code action before the Email action to build the email template (or parts of it). If you save the HTML to say $form->data['email_body'] you can include that into the Email action.

Bob
Vollover 03 May, 2018
Hi There!

How can I edit the email in Choronform6? A cannot see the email code. In the email the fields order completely different than I set in form designer. How can I edit?

Vollover
GreyHead 03 May, 2018
1 Likes
Hi Vollover,

You can edit the Email body in the Body box of the Email action - please see page 16 of the CFv6 manual.

Bob
Vollover 04 May, 2018
Hi GreyHead,

Thank you. Now I understand. I can completely personalised the email as in the previous Chronoform version. I just missed the autogenerated html from the "body" field.🙂

Tamas
This topic is locked and no more replies can be posted.