Use form variables

A form variable represents a hidden calculated value that can be referred to in other runtime expressions such as calculated value controls and rules and can also be bound to a column. Its value itself is determined by its own runtime expression.

Form variables provide the ability to manage values in a single location for use across your form without it having to be shown on the form canvas. They behave just like calculated value at runtime and can be bound to list columns without the need to be displayed in the form itself.

To add, delete, or edit form variables

You can add, delete, or edit the form variables that appear on the left hand side of the form.

  • To add a new one, use the Add button in the Ribbon.
  • To delete one, click the delete icon for the specific variable in the list.
  • To edit one, click the variable in the list and the details appear on the right hand side.

The Form Variable form displays the following:

  • Name: The name of the control. The name is used for comparison validation and other control references.
  • Type: The data type to convert to when the form is saved.
  • Connected to: The field to bind the input control to.
  • Recalculate formula on view mode: Recalculate the value when the form is displayed in view mode at run time.
  • Recalculate formula on new mode: Recalculate the value when the form is displayed in new mode at run time. By default, this is set to yes.
  • Recalculate formula on edit mode: Recalculate the value when the form is displayed in edit mode at run time. By default, this is set to yes.
  • Formula: The runtime formula to be calculated. Use the Formula Builder to create the formula.

Related information

Formula Builder