To better understand how Expressions work, check out the Use Expressions page in the How To section.
Expressions are comprised of several operations allowing you to transform, modify, and compute the data within an app in order to return an output result. Expressions can be used in several scenarios, such as:
- Bind to variables, process output, and other control values from the resources panel.
- Concatenate strings using the
- Perform comparative operations.
- Create logical operators within comparative operations.
- Set control values through the
Iffunction added to comparative operations.
- Perform arithmetic operations with the help of expressions.
- Declare static data such as "String", true/false, 123, etc or static lists of primitives such as a list of strings.
- Control hidden, disabled, font/background color properties.
- Reference a selected record or field on a record from another control.
The following operations can be used when configuring expressions:
- Named Operators
The following functions are made available for Apps:
The And function returns true if all arguments are true.
Combines multiple strings into a single string
Returns true if a string contains a text fragment.
Returns true if a string ends with a text fragment.
Returns one value if a condition is true and another value if not.
Checks for a blank value.
Returns the length of a text string.
Returns true if a string starts with a text fragment.
In addition to functions, Apps expressions also supports mathematical and conditional operators. For supported operators, see the table below.
Expressions can be used for the following:
Expressions are enabled for hidden and disabled properties for the following controls and their display values:
- Button - Text (icon not supported)
- Checkbox - Label, Checked
- DatePicker - Hint Text
- Dropdown - Hint Text, Default Selected
- Switch - Label, On
- Text Area - Default Text, Hint Text
- Textbox - Default Text, Hint Text
- Label - Text
- Header - Text
- Image - URL
When used on control properties, expressions are re-evaluated at runtime if any of their dependent values changes.
Rules are used to enable conditional logic. You can use expressions on the following rules:
- If - Compare, Group
- Open URL - URL
- Show Message - Title, Message
- Show/hide spinner - Message
- Start process - Input override
- Set Value - Value
Expressions are not reevaluated continuously when used in rules, only at the time that the rule is triggered.
Updated a day ago