A new Themler control that allows to build Forms:

The Form is intended to transfer data between the user and the server.
Let's look at an example of the most used form - Contact us form.
The Form consists of html part and server script.
HTML part of the form usually includes fields for filling in name, email and type of comment. Once the visitors of your website have filled out the contact form fields, they will click the Submit button to submit the information. To send the information you need a server script that will actually grab the data from the fields, compose into a message and send to your email.
Usage
- Add Form control available under the Insert Tab >> More.
Add form controls using "Add Control" option on the Ribbon:
Add Submit button available under the Insert Tab:
Enable Button submit option:
Not the Button will submit the form on click.Configure Form and Form Controls (see below)
- Since Themler does not provide server scripts for forms you will need to find ready script(PHP, for example) in the internet and upload it to your server.
NOTE: In order to use PHP scripts your server should be able to execute PHP. In Addition to this you should configure your server to send emails.
Form Settings
General

Name - is the name of the Form.
Action - The action attribute defines the action to be performed when the form is submitted. Here you should specify the path to the server script which defines where to send the form-data when the contact form is submitted.
Method - is the HTTP method to use when sending form-data: POST/GET.
Mode - the layout of the form: DEFAULT/INLINE/GRID

Form Control Styles

By default Form Controls use default styles (Design Tab >> More). In Addition to this you can configure the styles of the controls on a separate form.
Label - the styles of the Label control for all form controls.
Input - the styles of the Input, Textarea and Select fields.
Checkbox and RadioButton - the styles of the Checkboxes and RadioButtons (including labels)

Form Controls

Form Controls are blocks that include label and form control fields, for example, input field and label.
Therefore all shape settings available under the Form Control's popup are applied to the whole block.
Input
The most important form element.
Type - The Type of the Input field. Input can vary in many ways, depending on the type attribute: Text, email, password, etc. Specifies title
attribute.
ID - is the unique identifier of the field.
Name - is the name of the field.
Value - the option to specify field'svalue
attribute.
For example, for "text", "password", and "hidden" types of Input - it defines the initial text entered in the field.
Placeholder - the option to specify field's placeholder
attribute - a short hint that describes the expected value of an input element.
Maximum Length - specify how many characters can be typed in the field.
Text - the option tp specify a text of the input Label.
Checkbox
Checkbox is an Input element with type "checkbox". It uses bd-bootstrapcheckbox
class.

Name - is the name of the field.
List of Values - specify a semicolon separated list of checkbox values and options.
One Option: value1;Option 1;
Multiple Options: value1;Option 1;value2;Option 2;

Inline - enable to change checkbox list layout to inline:

Text - the option to specify a text of the element's Label.
RadioButton
Checkbox is an Input element with type "radio". It uses bd-bootstrapradiobutton
class.

Name - is the name of the field.
List of Values - specify a semicolon separated list of checkbox values and options.
Similar to the corresponding checkbox option (see above).
Inline - enable to change RadioButton list layout to inline:
Similar to the corresponding checkbox option (see above).
Text - the option to specify a text of the element's Label.
Select
The Select element is used to create a drop-down list.

ID - is the unique identifier of the field.
Name - is the name of the field.
Multiple - enable to select multiple options at once:

List of Values - specify a semicolon separated list of checkbox values and options.
Currently Themler does not support inserting of "disabled" options.
Text - the option to specify a text of the element's Label.
Textarea
The Textarea control is used to create a multi-line text input.

ID - is the unique identifier of the field.
Name - is the name of the field.
Placeholder - the option to specify field's placeholder
attribute - a short hint that describes the expected value of an input element.
Text - the option to specify a text of the element's Label.
See Also
Simple HTML Contact Form Example
<div class="alert alert-warning" role="alert"> Please note that Themler allows to build Forms. But it does not provide form action scripts (server script). In other words you can build Form in Themler but to get the form to work (to send emails, for example) you should use third-party scripts. There are a lot of ready free scripts in the Internet. In addition to this your server should be configured to send emails. </div> - [Usage](#usage) - [Form Settings](#form_settings) - [General](#form_settings) - [Form Control Styles](#form_styles) - [Form Controls](#form_controls) - [Input](#input) - [Checkbox](#checkbox) - [RadioButton](#radio) - [TextArea](#textarea) - [Select](#select) A new Themler control that allows to build **Forms**: !forms.png! The Form is intended to transfer data between the user and the server. Let's look at an example of the most used form - **Contact us** form. The Form consists of html part and server script. HTML part of the form usually includes fields for filling in name, email and type of comment. Once the visitors of your website have filled out the contact form fields, they will click the **Submit** button to submit the information. To send the information you need a server script that will actually grab the data from the fields, compose into a message and send to your email. <a id="usage"></a> ### Usage 1. Add **Form** control available under the **Insert** **Tab** >> **More**. 2. Add form controls using "Add Control" option on the Ribbon: !add-form-control.png! 3. Add Submit button available under the Insert Tab: !insert-form-button.png! 4. Enable Button submit option: !form-submit-button.png! Not the Button will submit the form on click. 5. Configure Form and Form Controls (see below) 6. Since Themler does not provide server scripts for forms you will need to find ready script(PHP, for example) in the internet and upload it to your server. **NOTE: In order to use PHP scripts your server should be able to execute PHP. In Addition to this you should configure your server to send emails.** <a id="form_settings"></a> ### Form Settings #### General !form-settings.png! **Name** - is the name of the Form. **Action** - The *action* attribute defines the action to be performed when the form is submitted. Here you should specify the path to the server script which defines where to send the form-data when the contact form is submitted. **Method** - is the HTTP method to use when sending form-data: POST/GET. **Mode** - the layout of the form: DEFAULT/INLINE/GRID !form-mode.png! <a id="form_styles"></a> #### Form Control Styles !form-styles.png! By default Form Controls use default styles (Design Tab >> More). In Addition to this you can configure the styles of the controls on a separate form. **Label** - the styles of the Label control for all form controls. **Input** - the styles of the Input, Textarea and Select fields. **Checkbox** and **RadioButton** - the styles of the Checkboxes and RadioButtons (including labels) !checkbox-styles.png! <a id="form_controls"></a> ### Form Controls !form-controls.png! Form Controls are blocks that include label and form control fields, for example, input field and label. Therefore all shape settings available under the Form Control's popup are applied to the whole block. <a id="input"></a> #### Input The most important form element. **Type** - The Type of the Input field. Input can vary in many ways, depending on the **type** attribute: Text, email, password, etc. Specifies `title` attribute. **ID** - is the unique identifier of the field. **Name** - is the name of the field. **Value** - the option to specify field's`value` attribute. For example, for "text", "password", and "hidden" types of Input - it defines the initial text entered in the field. **Placeholder** - the option to specify field's `placeholder` attribute - a short hint that describes the expected value of an input element. **Maximum Length** - specify how many characters can be typed in the field. **Text** - the option tp specify a text of the input Label. <a id="checkbox"></a> #### Checkbox Checkbox is an Input element with type "checkbox". It uses `bd-bootstrapcheckbox` class. !checkbox-properties.png! **Name** - is the name of the field. **List of Values** - specify a semicolon separated list of checkbox values and options. One Option: `value1;Option 1;` Multiple Options: `value1;Option 1;value2;Option 2;` !checkbox-options.png! **Inline** - enable to change checkbox list layout to inline: !checkbox-options2.png! **Text** - the option to specify a text of the element's Label. <a id="radio"></a> #### RadioButton Checkbox is an Input element with type "radio". It uses `bd-bootstrapradiobutton` class. !radio.png! **Name** - is the name of the field. **List of Values** - specify a semicolon separated list of checkbox values and options. Similar to the corresponding checkbox option (see above). **Inline** - enable to change RadioButton list layout to inline: Similar to the corresponding checkbox option (see above). **Text** - the option to specify a text of the element's Label. <a id="select"></a> ####Select The Select element is used to create a drop-down list. !select.png! **ID** - is the unique identifier of the field. **Name** - is the name of the field. **Multiple** - enable to select multiple options at once: !select-type.png! **List of Values** - specify a semicolon separated list of checkbox values and options. Currently Themler does not support inserting of "*disabled*" options. **Text** - the option to specify a text of the element's Label. <a id="textarea"></a> #### Textarea The Textarea control is used to create a multi-line text input. !textarea.png! **ID** - is the unique identifier of the field. **Name** - is the name of the field. **Placeholder** - the option to specify field's `placeholder` attribute - a short hint that describes the expected value of an input element. **Text** - the option to specify a text of the element's Label. ### See Also [Simple HTML Contact Form Example](page:98863)