The field types in web forms
The Web Forms for Marketers module enables you to create web forms. A form consists of fields, and each field consists of a field name and field type.
In the module, the field type determines how a field is rendered in a form, as well as the number of settings in the Form Designer, client and server validations and how a field value is processed.
Field types are divided into:
Web Forms for Marketers also lets you create your own custom field types.
All the form field types and their settings are stored under the /sitecore/System/Modules/Web Forms for Marketers/Settings/Field Types
item and are based on the /sitecore/Templates/Web Forms for Marketers/Field Type
template.
Simple types
Field type |
Description |
---|---|
Single-line text |
Enter one line of text in this field. The field length is limited to 255 characters by default. |
Multi-line text |
Enter multiple lines of text in this field. The number of characters is limited to 512 by default. |
Password |
Enter a password in this text field. All the characters you enter in this field are masked. |
|
Enter email addresses in this field. It checks that it is a valid email address that includes an @ and . as characters, as well as the length of the email server domain. |
Telephone |
Enter telephone numbers in this number. This field also accepts spaces, and +, -, (, and ) characters. |
SMS/MMS telephone |
Enter telephone numbers that you can send SMSs and MMSs by typing numerals and the + character in this field. The + character can only be used as the first character in the field. This field is compatible with the Send SMS and Send MMS save actions. |
Number |
Enter numerals in this field. |
Date |
Type dates in this field. |
Date picker |
Select a date from the calendar in this field. |
Checkbox |
Display a check box that allows users to enable or disable a condition. |
File upload |
This field displays the Choose File button that opens up a dialog box where users can select a file to upload to a server. |
List types
Field Type |
Description |
---|---|
Drop list |
Select a single option from a list. |
List box |
Display a list box that allows you to select one or more items. |
Radio list |
Display a group of options in a radio list using this field. |
Checkbox list |
Display a group of check boxes, enabling users to select one or more check boxes from the list. |
Complex
Field Type |
Description |
---|---|
CAPTCHA |
This field prevents robots from registering on websites. This field type is rendered using two fields: an image field and a text confirmation field. The user should enter the characters from the image field in the text field. |
Password confirmation |
Use this field type to prevent users registering with an incorrect password. This field type contains two fields: a Password field and a Confirm Password field. These are used to create a password. Every character entered in these fields is masked. |
Credit card |
Prevent users from entering invalid credit card numbers with this field. This field type contains two fields. One field allows the user to select a credit card type. The other field allows the user to enter a credit card number. Note On MVC forms there is only one field. This field type validates the credit card number with the possible number ranges and combinations allowed by the different types of credit card. You can specify that validation should be based on the Luhn formula or one of the following credit card types:
|