Enable/Disable Element
Last updated
Last updated
Enable/Disable Element
is a that allows you to enable or disable elements on a page or form. When an element is disabled, it typically appears grayed out and the user cannot click on it or interact with it in any way.
The specific behavior depends on the type of element it is applied to. Here are some common use cases:
and elements: The user cannot enter or modify any value.
element: The dropdown menu becomes non-selectable, and the user cannot change the selected option.
and elements : The user cannot toggle the state.
and elements: The user cannot trigger clicks/right-clicks, double-clicks, etc.
Refer to the block for dynamically generated content.
The block comes in two modes which are discussed below.
The Mode 1 version of the Enable/Disable Element block consists of (from left to right):
The Mode 2 version of the Enable/Disable Element block consists of (from left to right):
The image below shows an example of the Mode 1 version where the selected element is disabled.
NOTE: Using a CSS selector, you can operate on multiple elements that match the criteria specified by the selector. See the references below for more information:
Element: to choose the element you want to enable/disable.
Data: to select the option to enable or disable the element.
Element: that accepts either a value in the form of a or an value The Element block comes pre-attached for your convenience but can be removed and customized.
Data: that accepts a (true/false) value where true represents the enabled state and false represents the disabled state.
In the next example we see a Mode 2 version where the Element value parameter is attached to a Text block containing a that selects the same element. This time the element is enabled.