Hide and Show Form Controls
  • 12 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Hide and Show Form Controls

  • 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.12.1
Root FolderExample lab - Hide and Show Form Controls
Modules None
DependenciesNone

This Example Lab demonstrates how to hide or show a Form component based on a checkbox.


Explanation

If you open up the User Form and scroll down to "Visibility Rules" on the bottom right panel, you will see "HideDropdownRule."  If you click on the pencil, you will be able to edit this visibility Rule. If you edit the "drop-down" under "Rule Inputs," you can see that the input is set to the Form component "Is Reviewer" and the "RunOnValueChangedDropbox" is selected. This means that whenever that checkbox is selected, this Rule will be re-evaluated. Under "Behavior", you will see that "Hide/Show" is selected, and under "Evaluation," "Hide if the Rule evaluates FALSE" is selected. This combination is what allows hide/show behavior based on the Rule. Finally, under "Apply to Controls," you can see that "LabelReporting" and "ReportingRoleComboBox" are checked. These two Form components are what is shown or hidden when this Visibility Rule is evaluated.

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.12.1 or later using our Importing/Exporting article.




Was this article helpful?