I have a simple form with a checkbox on it. That when ticked I want a TICK to display in the email template.
I am testing this using this code in the email template, but nothing is returned.
I am testing this using this code in the email template, but nothing is returned.
<?php if({test}==1){
echo "Ticked: ✔";
}
else{
echo "Not";
} ?>
Hi wmuckell,
If you want the buttons to remain clickable then this article has a method that worked with CFv3 and can be adapted for CFv4.
Bob
If you want the buttons to remain clickable then this article has a method that worked with CFv3 and can be adapted for CFv4.
Bob
I think you have misunderstood me. It is not the form itself it is the Email Template that gets sent out. Normally check boxes show just a 1 if ticked but I want it to show a tick instead in the email when sent.
then you can get the field name value in PHP using:
you can use the value in your PHP logic.
Regards,
Max
$form->data['field_name']
you can use the value in your PHP logic.
Regards,
Max
This topic is locked and no more replies can be posted.