Skip to content

Smart field

Reference5 minFoundation

Calculate an invoice balance from its amount and recorded payments with Smart ScriptSmart ScriptBeezr's scripting language (engine name Beezl) used in fields, rules, filters, workflow values and dashboards.Open glossary ↗. The script runs when the record is shown, so people do not type the calculated balance into the V3 form.

A value computed by a Smart Script when the record is shown.

SMARTFIELD

Use when

  • Invoice balance: invoice amount minus payments

Choose another type for

  • Manual values people need to edit

On a form

Use record displays to show the computed result from the record’s existing values.

In views

Can be selected for configured data view columns. Configure its display in the data view settings.

In Smart Script

getCurrentValue() has a String return type for every field type; an unset value can be null. Read the string value before using it in an expression.

Import and export

The output is calculated by a script. Import the source fields rather than relying on an imported computed value.

Example

Invoice balance: invoice amount minus payments

Settings

SettingWhat it does
Smart ScriptProvides the expression evaluated when the record is shown.
Show in record detailsIncludes this field in the record details; forms and data views are configured separately.
Show in the record headerIncludes this field among the record header fields.
PositionSets the order in record details; lower numbers appear first.
Virtual fieldComputes the value at display time instead of storing it.
Encrypt valuesChoose encryption when you create the field.
Encryption keySelect an ACTIVE encryption key.
Default valueSets a plain value or Smart Script for new records.
The Smart field field configuration and its type-specific settings.

    Start the field name with an English letter. Use letters, digits, spaces and underscores.