FormSingleRow
The FormSingleRow element is used for the generation of several (usually two) FormFields in a single row. The default length of a FormField inside a FormSingleRow is half the length of the FormField (not enclosed in a FormSingleRow). To render the enclosed FormFields correctly, the maximum length of the shorter FormField has to be set to maxlength="10" (or smaller); the longer FormField has to be set to maxlength="40" (or smaller).
The default configuration of two FormFields in a FormSingleRow has three different layouts regarding the length of the FormFields (Length of the FormField in brackets):
- long (40) - short (10)
- short (10) - long (40)
- medium (25) - medium (25)
Attributes
Attribute | Mandatory | Description | Example |
---|---|---|---|
name | yes | Unique name of the form within the FormList (has to be written in UPPERCASE letters and must not contain any special characters). | name="General" |
authorization | no | Only users with the appropriate Role/Claim are authorized to view/process the element. |
|
editable | no | Boolean value which defines, if the FormFields within the tab are editable. Default is "true". |
|
template | no | Template used for the layout of the SingleRow. If no template is declared, the width of the FormFields will be defined automatically according to the value of their maxlength attribute.
Templates to be used are:
|
template="FormSingleRowMiddleTemplate" |
visible | no | Defines the visibility of the FormSingleRow. The result has to deliver true or false. More details can be found here. | Examples can be found here |
Example
<FormSingleRow name="Address" template="FormSingleRowMiddleTemplate">
...
</FormSingleRow>