Adding Logic
The Digia Dashboard allows you to enrich your appβs behavior by adding custom expressions and logic directly from the UI. This can be done in any field that supports dynamic values β simply click on the dynamic field icon [<>] and the Code Dialog will open.

Within this dialog, you can:
β Use built-in expression functions β Nest expressions β Combine expressions with your own JavaScript functions β Generate expressions using AI

Preview Value is used for the Design mode and has no impact on the actual expression.
π€ AI-Powered Expression Generation
Digia now supports AI-assisted expression writing. Simply write a prompt describing what the expression should do, hit generate, and the AI will create the expression for you. The generated expression is fully editable, allowing you to refine it as needed.

This feature makes it easier for anyone to create complex expressions without deep knowledge of the syntax.
π§ Built-In Functions
Digia provides many built-in functions out of the box. These are grouped into the following categories:
These functions can be mixed and matched in expressions and can also be nested within each other.
π Examples
jsonGet(response.data, 'users[0].id')
Returns the id of the first user in the list
isNotEqual(2, 2)
Returns false because both arguments are equal
isoFormat('2024-06-03T23:42:36Z', 'Do MMMM')
Converts ISO string into a readable format (3rd June)
π Nested Expressions
Expressions can reference other expressions:
In this example, the platform first resolves
jsonGet(...), and then evaluates the result against the number5.
If the built-in expression language isnβt enough, you can write your own JavaScript function and call it from the code dialog.
Example:
β
Summary
Built-in expression functions
β
Nested expressions
β
Custom JavaScript invocation
β
Combination of both
β
AI-powered expression generation
β
Last updated