Buy Now
Sign in

Conditional Email content

dungsmile4242 , April 23 at 04:01
D
dungsmile4242
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
V
Vollover
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
V
Vollover
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