Appearance
Tag
{exp:reinos_email_form:form}
Tag Parameters
Below are the Tag Parameters. Those parameters can be used in the tag described above
return_url
Specify the url to return after submission
return_url="/submission/success"
error_return_url
Specify the url to return on error
error_return_url="/form/error"
required_fields
Set the required field for the form
required_fields="field_1|field|2|field_3"
form_label
Set a label so you can identify you submission in the CP by name
form_label="Contact form"
form_class
Set the class of the form
form_class="submission-form"
form_attr:your-attr
Set a custom form attr
form_attr:novalidate="true"
form_id
Set the ID for the form
form_id="submission-form"
secure
Disable/enable the secure function for the forms.
secure="no"
name
If you add a form in the backend, you can select this one here
name=""
allowed_types
Select the types of files that are allowed to upload.
allowed_types="gif|jpg|png"
lang
Set the correct lang for the reCaptcha
See the full list of languages here https://developers.google.com/recaptcha/docs/language
lang="en"
Tag Variable
Below are the Tag Variables. Those Variables can be used in the tag described above
email_template
Inside this tagpair you can build your own template, instead of using the default templates defined inside the control panel.
More information here
{email_template}
This email is sent to {to:name} with the following message: <br />
{body}
{/email_template}
success
The succes message
{success}
// or use it to show a custom message
{if success}Your custom message{/if}
error
The error message
{error}
// or use it to show a custom message
{if error}Your error custom message{/if}
validation_errors
Show all validation errors
[EE2]
{validation_errors}
[EE3]
{validation_errors}
{field} - {error}<br>
{validation_errors}
attachments_error
Show the attachment errors
{attachments_error}
captcha
enable the default EE captcha
{if captcha}
<span style="color:red;">{captcha_error}</span><br>
{captcha}<br />
<input type="text" name="captcha" value="" maxlength="20" />
{/if}
recaptcha
enable the recaptcha from google
{!-- init tag should be placed in the head --}
{exp:reinos_email_form:init_recaptcha}
{if recaptcha}
<span style="color:red;">{recaptcha_error}</span><br>
{recaptcha}
{/if}