Smart field
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
| Setting | What it does |
|---|---|
| Smart Script | Provides the expression evaluated when the record is shown. |
| Show in record details | Includes this field in the record details; forms and data views are configured separately. |
| Show in the record header | Includes this field among the record header fields. |
| Position | Sets the order in record details; lower numbers appear first. |
| Virtual field | Computes the value at display time instead of storing it. |
| Encrypt values | Choose encryption when you create the field. |
| Encryption key | Select an ACTIVE encryption key. |
| Default value | Sets a plain value or Smart Script for new records. |
Name the field
Section titled “Name the field”Start the field name with an English letter. Use letters, digits, spaces and underscores.
What's next
Last checked