A boolean property that sets whether the button is disabled.
Property of Button
Description
This property can be set to determine the availability of the button. If it set to true, the button will be grayed and unavailable for user interaction (clicks); if it set to false, the button will be available for user interaction, and button events generated as a result of this interaction will lead to the execution of the event listeners for the button.
Setting this property directly in the global MetaScript of a form is not recommended, as button availability will be recalculated after the global MetaScript is loaded.
Example
If the below code is added into the Global MetaScript for a form that has two buttons (with IDs "b1" and "b2"), clicking button b1 will toggle the availability of button b2: