Instead of writing internal script code to determine the visibility or read-only properties of fields and UI panels, you can add a JavaScript expression in the Read-only or Hidden expression, in the properties for a field or UI panel.
The Read-only and Hidden-expression are basic JavaScript eval expressions, that decide whether a field should be hidden or read-only. See the table below for examples.
Info: Read-only and Hidden expressions support JavaScript notation to evaluate an expression. They support field lookup, arithmetic and logical operators.
Field references must be enclosed in double curly brackets, for example
{{field01}}.Text fields referenced in the expression must be of type Single Line.
Expression | Description |
|---|---|
| Match if the |
| Match if |
| Match if |
| Match if |
| Match if |
| Match if the environment variable |
