Form Element Advanced Field
Each form asset element has an "Advanced" field. Adding attributes into this field defines additional properties for the questions, such as datasets for possible answers and the size of an answer field. Attributes are always lowercase and in certain cases, more than one attribute can be included in the field. For them to function, however, these attributes must already be defined either within the XSL or CSS of the site; the default state of Omni CMS does not necessarily have them defined.
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 |