Rules

You can create formatting and validation rules.

A rule is triggered when its condition expression evaluates to true. If the condition expression evaluates to false, the rule is not triggered. When a validation rule is triggered, red boxes appear around the affected controls.

The condition syntax can include any variables available in the formula builder, including item properties and named controls. Runtime functions and standard mathematical symbols can be used to manipulate or compare values for the purpose of crafting a condition. If all values in the condition (formula) are of the number data type, then the value is calculated.

Note: Formulas (conditions) differ from inline functions, which are resolved on form load at run time. For more information about inline functions, see Functions.

Following are example condition scenarios.

  • To concatenate strings, include the "+" symbol between named controls and string or number values.
  • To specify a string literal, use double quotes. Example: Option=="High"
Forms