Form Fields: The data you want to collect on the form. You can add as many fields as required ranging from all form input types like text, files, radio buttons, etc.
Each form field has multiple options as seen here:
Required this makes the form field required. A user cannot submit a form if a required field is not filled out. They can submit if the form field is blank and not required.
Field type is the type of input you want for that form field.
Choices are the default choices for any field type under the “Choice” drop down in the Field type
Default value is a value that is automatically entered into the input, however the user can override it.
Click the “Add Confirmation Emails” button to add additional emails you want to send out when a form is submitted.
You can reference your form fields in the Confirmation Email’s fields using Django bracket notation. For example, for the
To Addresses: you could reference your form field Email by using {{email}}.
The Django variable tags are generated automatically from the form fields that you create and are in lowercase letters, with any spaces indicated by an underscore.
If you had a form field with the label “First Name” the Django tag would be first_name which you would place in
curly brackets when referencing it in the Confirmation Email fields.
In the Body of the email, you can use HTML to design it as you like. Reference the form fields with Django tags to personalize it. See an example below:
Our confirmation email is referencing the form fields that we created on the “Contact Us” page. Review the full page
to identify the references.¶
Our confirmation email is referencing the form fields that we created on the “Contact Us” page. Here are the form fields on that page.¶
Note
By default when running locally, confirmation emails are not sent, but are
instead printed to the command line.