--- title: "Disable element" slug: "freaction-disable" updated: 2026-05-05T09:19:56Z published: 2026-05-05T09:19:56Z canonical: "docs.lobstersoftware.com/freaction-disable" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Disable element *See also*: [Enable element](/v1/docs/en/freaction-enable), [Form elements](/v1/docs/en/fre-form-elements) > [!NOTE] > **Actions – Abstract** > > The [Disable element](/v1/docs/en/freaction-disable) action deletes the "Active" option for the linked **Target element** at runtime. The [Disable element](/v1/docs/en/freaction-disable) action deletes the "Active" option for the linked **Target element** at runtime. This option must be set for an element to be *effectively enabled* (see note below). An element for which the "Active" option is not set is always *effectively disabled*. It does not accept any interactions (accept focus, change value, etc.) and is considered "valid" without checks (required field, [Validators](/v1/docs/en/frevalidators)). In general, an *effectively disabled* element also visually signals this state by appearing "greyed out". ![images/download/attachments/189432943/image-2024-10-7_15-49-30-version-1-modificationdate-1728308970873-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-7_15-49-30-version-1-modificationdate-1728308970873-api-v2.png) - The action can only be selected under **Action type** if a **Target element** is linked. - The "Active" option is available for all [Form elements](/v1/docs/en/fre-form-elements). > [!NOTE] > **NOTE:** > > - The **Target element** is always *effectively disabled* at runtime by the [Disable element](/v1/docs/en/freaction-disable) action. > - If a **Target element** of the type [Element containers](/v1/docs/en/fre-element-container-vo) is *disabled*, then all direct and indirect child elements are also *effectively disabled*. If these are themselves "set to enabled", they are then regarded as *latent active*. > - Because an *effectively disabled* element excludes all interactive access, settings for the "read-only" option that affect the element or a parent container are irrelevant with respect to the **Target element**. ## Example In a form for entering employee data, the input fields are organized by category in a [Tab panel](/v1/docs/en/fre-tab-panel-vo) element. Depending on the [Role of session](/v1/docs/en/base-session-role-value), certain tabs should be enabled or disabled at runtime so that the information contained in them is only available to a limited group of users without having to configure a separate variant of the entry form. Runtime example: ![images/download/attachments/189432943/image2020-6-18_10-9-40-version-1-modificationdate-1728308773467-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-6-18_10-9-40-version-1-modificationdate-1728308773467-api-v2.png) - The basic data on the "employee" is available to all users, but is always write-protected in the form, since a different system is used for this information (including the "Employee ID"). - The "Organization" and "Qualifications" tabs may only be viewed and, if necessary, edited with an "administrative" role. Otherwise, they appear *disabled* and "greyed out" (as in the image). They cannot be selected for display. Configuration: ![images/download/attachments/189432943/image2020-6-18_10-13-52-version-1-modificationdate-1728308773470-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-6-18_10-13-52-version-1-modificationdate-1728308773470-api-v2.png) - For each tab that should be "conditionally accessible", a separate behavior like the one displayed here has been configured. - Since the crucial [Role of session](/v1/docs/en/base-session-role-value) cannot be changed while the form is open, the **Triggering event**[Form data loaded](/v1/docs/en/fretrigger-form-data-loaded-element) is used. - The **Behavior type** [Association criterion matched](/v1/docs/en/frebehav-association-criteria-matched) checks one or more [Association criteria](/v1/docs/en/core-association-criteria). In the example, the only thing of interest here is whether the [Role of session](/v1/docs/en/base-session-role-value) has an "administrative character". The selection of the relevant roles determines the association criterion. - Under the **Actions on "true"**, no actions are necessary, because the tab is set to "enabled" by design. - Under the **Actions on "false"**, the action [Disable element](/v1/docs/en/freaction-disable) ensures that the linked **Target element** (the tab) appears "greyed out" if the logged-in user is not using any of the privileged roles. **NOTE:** The [Tab panel](/v1/docs/en/fre-tab-panel-vo) element always displays the content of the first visible tab when the form is opened. If it is *effectively disabled*, it will appear greyed out. In the given scenario, disabling the first tab (**Employee**) would therefore not prevent "read access" to the contained data. Only for the following tabs, which would first have to be selected at runtime for their content to be visible, "read access" is also prevented by disabling them. A more effective data protection ensures that the tabs are hidden by [Hide element](/v1/docs/en/freaction-hide), if necessary.