Expression | Description |
{ControlName} | Returns the value of the control with the specified name. Equivalent to the following javascript expression: form.GetControl("ControlName").GetValue(); sample formula: "The item title is: " + {Title} |
{name:ControlName} | Applicable when the control with the specified is a lookup control (for example, ComboBox). Returns the property of the selected item (object) that is displayed (the one entered in the Lookup Display Field). Equivalent to the javascript expression: form.GetControl("ControlName").GetValuePath(form.GetControl("ControlName").LookupDisplayField) sample formula: "The selected country is" + {name:Country} |
{value:ControlName} | Applicable when the control with the specified is a lookup control (for example, ComboBox). Returns the property of the selected item (object) that is used as a value (the one entered in the Lookup Value Field – not the one that is displayed). Equivalent to the javascript expression: form.GetControl("ControlName").GetValuePath(form.GetControl("ControlName").LookupValueField) sample formula: "The selected country ID is: " + {value:Country} |
{ControlName#PropertyName} | Applicable when the control with the specified is a lookup control (for example, ComboBox). Returns the property [PropertyName] of the selected item (object) that is used as a value. Equivalent to the javascript expression: form.GetControl("ControlName").GetValuePath("PropertyName") sample formula: "The selected country’s Code is: " + {Country#Code} |
{ControlName.PropertyName} | Applicable for ListBox controls. Returns the property [PropertyName] of the listbox’s selected item (object). Equivalent to the javascript expression: form.GetControl("ControlName").GetSelectedItem()["PropertyName"] sample formula: "The selected row ID is: " + {Details.ID} |
Formulas can be used to “Enabled Formula” and “Visibility Formula” properties. The expressions you enter in this property will evaluate on runtime whether a control is Visible or Enabled.