Computed field
Set a field to a fixed value that can depend on previous fields
Ingredient Family: formIngredients
Outline Display: A formula for defining {{columnName}} as {{formula}}.
Local scope
The parent slot binds these (look up the slot in the parent to see how):
$parentTable– The table (if any) that this form is based on$formFieldsTable– A table of form fields that is built up through the sequence of form ingredients
Settings
Required
-
columnName: column of$parentTableor new (type filter: any type)
The column to set
Settyonly whencolumnNamenames a new column (not in$parentTable). -
formula: formula (returns type ofcolumnName)
The formula that generates a value for the chosen column
Scope: current time as[CURRENTTIMESTAMP], current username as[Username](only where the handler authenticates: a logged-in page, or the calling user of an MCP tool, including inside its pipeline), all columns of$formFieldsTable(reference as[ColumnName], e.g.,[Name],[Price])
Optional
-
default: constant value (type: type ofcolumnName)
A default value for the column if the formula refers to itself -
dynamic: constant value (type: bool; required, non-nullable)
ChooseTrueif we should we apply this formula dynamically, updating as the form changes. ChooseFalseif we should apply this formula only on commit.