Creating or configuring forms > Configuring the <components> element > Setting component rules

6.1.18 Setting component rules

This class represents a way to add requirements and rules to components. A component rule consists of two parts:

<requirement> - What must be evaluated to determine if a response should occur. The requirement can be any Boolean decider. It is evaluated when any of the components change.

<response> - What happens if the requirement is evaluated to true. The response can do one of the following operations: change the selectable values in a single select list box, change a component's (or a section's) visibility, validate or invalidate individual components, or get a dynamic component response.

To set a component rule

  1. Inside the component, set the <component-rule> element.
  2. Place the <requirement> element within <component-rule> and configure a Boolean value decider to be evaluated when any of the components change. See Setting a Boolean decider.
  3. Within <component-rule>, configure the <response> element to perform one of the following operations:

Related topics