Forms Advanced Fields
Add attributes in the Advanced field of a form asset to define properties, such as datasets for possible answers and the size of a form answer field.
Attributes are always lowercase and often more than one attribute can be included in the field. Then define the attributes within the XSL or CSS of the site.
Attribute Name |
Syntax Example |
Description |
---|---|---|
addclass |
|
Adds a class to the To create a hidden field in a form, define a CSS class of |
fieldset_start |
|
Defines the opening tag for a |
fieldset_end |
|
Defines the closing tag for a fieldset and is used in conjunction with |
fieldset_label |
|
Defines the label of the fieldset. For example, if the group should be labeled “About,” then that can be defined here. It can be entered without quotes and can include spaces. |
size |
|
Adds a size attribute to a single-line text field within the form. The size attribute is used to specify the viewable size of the field defined in characters. This does not determine the number of allowed input characters. |
cols |
cols=10; |
Adds the |
rows |
|
Adds a |
dataset |
|
Adds a predefined dataset to a radio button, checkbox, single-select, or multi-select element. This is useful for data that are frequently used, but tedious to type. For example, the “state” dataset includes all 50 United States so that they may be used in a selector element. Preconfigured datasets include: state state_ab country year month alphabet numbers |
form_classes |
|
Adds one or more classes to the specified form node. See the following examples: To add To add To add a class to the submit button, use |