Skip to main content

Form settings

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.
  • authorization="ROLE[ADMIN,EDITOR]"
  • authorization="CLAIM[WF_ADMIN,WF_EDIT]"
editable no Boolean value which defines, if the FormFields within the tab are editable. Default is "true".
  • editable="false"
  • editable="SCRIPT[...]"
  • editable="SESSION[KeyExists({SESSION.SELECTION})]"
  • editable="SQL[SELECT ... FROM ...]"
  • editable="OBJECT[...]"
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:
  • FormSingleRowMiddleTemplate: space is divided evenly between two FormFields
  • FormSingleRowFloatingTemplate: space is divided according to the available place
  • FormSingleRow3FieldsTemplate: space is divided evenly among three FormFields
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>