ui.Form.setFieldHidden
Show or hide a form field.
Syntax
setFieldHidden(
name STRING,
hide INTEGER )
- name defines the name of the form field, see Identifying elements in ui.Form methods.
- hide the integer value to show or hide the element.
Usage
Change the visibility of a form field with the setFieldHidden()
method.
Note: Make sure that the form layout is prepared to adapt, when
elements are hidden dynamically. Containers such as
TABLE
allow hiding form fields
/ columns with little impact on the layout.Pass the identifier of the form field, as defined in the form definition. The
form field is identified by column name, with an optional prefix (table.column
or
column
).
The value passed to hide/show the element can be 0, 1 or 2:
Note: Do not hide all fields of a dialog, otherwise the dialog execution
stops. At least one field must get the focus during a dialog execution.