The forms directory holds all files needed to create a form. The main form file (FORM-NAME.form.php
) is the
only file required to create a form, but other files may created in this directory to control the style and behaviour
of individual forms.
All forms need a mail template that controls the formatting of the emails sent when a form is submitted.
The default mail template is loaded from this file and is used by all forms by default.
The mail template is simply an HTML file that tells the script how to format the email and where to insert the
field values.
Field values are inserted with the pseudo HTML tpl
tag :
<tpl:FIELD-NAME>
where FIELD-NAME
is the name of an existing field.
Any tpl
tag that is found will be removed completely and replaced with the corresponding field's value.
When the email is sent by the server both an HTML and plain text version is sent; the plain text version is automatically generated from the form mail template by stripping all HTML form the file.
This file allows you to override the captcha image configuration for individual forms.
For information on the settings that are allowed in this file see
SecurityImage.configuration.php.
Unlike individual form configurations this file must contain all configuration properties and not
only the settings that are being overwritten.
This file allows you to override configuration settings for individual forms.
For information on the settings that are allowed in this file see
SimpleContactForm.configuration.php
For details on how to override settings see
Overriding configuration settings
This file holds a form's HTML code and is required for any form.
See Creating the HTML for details on how to
create this file.
This file allows you to override styles for individual forms. For details about this file see css/style.css