Enabling and Disabling Form Components
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Enabling and Disabling Form Components

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.9.2
Root FolderExample Lab - Toggle Enabled Status in Forms
Modules None
DependenciesNone

This Example Lab project demonstrates how to add action items to a Form that can toggle the enabled/disabled status of other Form components.


Explanation

This Example Lab has a Form with a switch in the corner and three text box Form components, the switch can enable/disable the text boxes. This project uses a visibility Rule that performs an enable/disable behavior, but visibility Rules can be used to achieve a hide/show behavior as well. This configuration would take place when editing the Rule. The switch on the Form uses a checkbox boolean output; checking the box makes the output true, unchecking the box makes it false. The output is received by the visibility Rule on initial execution and each time the value is changed. It is then used to either enable or disable the selected Form components via the visibility Rule.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.9.2 or later using our Importing/Exporting article.





Was this article helpful?