Field methods:
| Method | Description | Example/content |
|---|---|---|
| getValue() | Gets the value of a field | |
| setValue(value) | Sets the value of a field | |
| setLayout() | Set the layout of a field | 1/3, 2/5, .. |
| layoutInputAlignment() | Set the alignment of the input if ajusted the input layout | left/center/right |
| layoutVerticalAlign() | Ajust the vertical alignment | top/center/bottom |
| getLabel() | Get the label | |
| getSubLabel() | Get the sublabel | |
| setLabel(label) | Set the label | |
| setSubLabel(label) | Set the sublabel | |
| getVisible() | Get the visible state of the field | |
| setVisible(visible) | Set the visible state of the field | true/false |
| getReadonly() | Get the readonly state of the field | |
| setReadonly(v) | Set the readonly state of the field | true/false |
| getRequired() | Get the required state of the field | |
| setRequired(v) | Set the required state of the field | true/false |
| setRawData(data) | If the field has list-data, for example the dropdown or choice fields, you can set the data with this function | |
| setData(data) | Same as above, but then with data you get from getData() | field.getData() |
| addDataOption( keyValueObject, index = null) | Or just add 1 option to a list | key: 10, value: "My label" |
| setInputType(inputType) | Set the input type of a single line text field | Text/Date/Number/Hidden/Password/Email/Color |
| getAjaxResult() | If you use ajax/http on this field, the HTTP response can be retrieved via this function |