Feature: #108663 - Adjust visibility of form elements in Form Editor
See forge#108663
Description
The Form Editor now provides the ability to configure the visibility of form elements. This allows form administrators to control which form elements are displayed or hidden in the form, providing better control over the form structure and user experience.
Usage
When editing a form element in the Form Editor, a new "Visibility" option is available in the element's configuration panel. This option allows you to:
- Show the element (default behavior)
- Hide the element
The visibility setting is stored in the form definition and is evaluated when the form is rendered on the frontend.
Example for Integrators
If you want to extend your own form elements with the visibility feature, you need to add the following configuration to the element definition:
prototypes:
standard:
formElementsDefinition:
CustomElement:
formEditor:
editors:
# Choose a key / position according to your own needs
240:
identifier: enabled
templateName: Inspector-CheckboxEditor
label: formEditor.elements.FormElement.editor.enabled.label
propertyPath: renderingOptions.enabled
Impact
This feature improves the usability of the Form Editor and makes it more accessible to non-technical users who need to manage form visibility.