Trigger RowAction on Condition

IngredientformIngredients

A trigger that performs a RowAction when an expression on the formFieldsTable columns transitions from false to true. At form open this fires immediately; subsequent triggers are debounced by the delay.

Ingredient Family: formIngredients

Outline Display: A trigger that performs an action when {{trigger}}. The performed action is
{{action}}

Details

The trigger fires on false-to-true edges of its formula. When the form opens and the formula is already true, the action fires immediately regardless of the delay setting. After that initial check, subsequent false-to-true edges are debounced: the action waits for the delay period, and only fires if the formula is still true when the delay expires. The trigger fires at most once per form lifecycle; it re-arms when the form resets (e.g., after a successful submission that re-opens the form). A delay of 0 (the default) means every edge fires immediately with no debounce.

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

  • trigger : formula (returns bool; required, non-nullable)
    The condition that triggers the action
    Scope: all columns of $formFieldsTable (reference as [ColumnName], e.g., [Name], [Price])

Optional

  • delay : constant value (type: integer; required, non-nullable)
    Milliseconds to wait after a trigger condition change before firing (0 for immediate)

  • action : ingredient slot of rowActionsIngredients($formFieldsTable) (many)
    The action to perform.