This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have a web form that I created, that sends an email via one of the mail templates.
The form has a checkbox that translates to either a 1 or a 0, depending on whether it has been checked or not.
In the mail template, I would like to introduce some logic to where, if the checkbox was checked, then it displays one message, and a different message if the checkbox was not checked.
I see that you can use Twig within mail templates, so I have the following:
{% if {{checkboxField}} == 1 %} The Checkbox was checked. {% else %} The Checkbox was not checked. {% endif %}
I recognize that you can't use {{ }} within {% %}... but I'm just not sure what I need to be calling to get the value of that form field.
Any ideas?
1-1 of 1