Skip to main content

Step 4 - Virtual fields

Virtual fields enable you to provide calculated and formatted values to your users. For example, if you have a KV store that stores a user address across multiple fields, you could create a virtual field which nicely formats these parts together.

Virtual fields can be created in two types: Markdown or Calculation.

Virtual fields can reference eachother, meaning you can perform a calculation first, before displaying it in markdown.

Markdown

Markdown fields allow you to enter dynamic markdown formatted text, while including references to other fields through templating (e.g. see address example above).

Calculated fields

Calculated fields allow you to perform basic javascript evaluation over other fields values, to calculate a result. For example, if there is a field called expiry_date, you could make a field called notification_time, which is calculated as two weeks before the expiry.

Calculated fields also have a format as option, so you can nicely format numbers, text, boolean values and Date Time (e.g. unix epoch) in the UI.