Hide element
See also: Show element, Form elements
Actions – Abstract
The Hide element action deletes the 'Visible' option for the linked Target element at runtime. This option must be set for an element to be effectively visible (see note below). An element for which the 'Visible' option is not set is always effectively invisible.
The Hide element action deletes the 'Visible' option for the linked Target element at runtime. This option must be set for an element to be effectively visible (see note below). An element for which the 'Visible' option is not set is always effectively invisible.
►IMPORTANT◄ An element that is defined as 'Required' must also be filled if it is effectively invisible. In contrast, any Validators configured for an element are only effective if it is effectively visible. The action Hide element may therefore influence not only the validation result of the element, but also the validation of parent elements up to the form.
The action can only be selected under Action type if a Target element is linked.
The 'Visible' property is available for all Form elements, so that any target element except the form element itself can be linked.
►NOTE◄
The Hide element action always turns a Target element effectively invisible at runtime.
If a Target element of an Element containers type is hidden, all direct and indirect child elements turn effectively invisible. If these are individually 'set to visible', they are considered as latently visible.
Example
In an input form for Shipments, a group of entries for 'Specifics' can be deleted globally by checking the Check box No specifics. In response, the relevant Row layout container should also be hidden unless this Check box is cleared again, if necessary.
Runtime example:
For a new shipment, the Specifics are displayed initially. For specific options (in the screenshot: Signature release) further input fields (in the screenshot: Delivery location) may appear when checked.
When the option No specifics is set, the Row layout container with the specifics disappears.
If the option is activated again afterwards, previous entries are deleted.
►IMPORTANT◄ The action Hide element does not delete the entries. This must be arranged separately, as well as the show/hide for the Text field Delivery location depending on the Check box Signature release.
Configuration:
|
For the Check box element No specifics the behaviour displayed on the left is configured:
|