Conditionally enabled field

IngredientformIngredients

A widget that is enabled only if a specified condition is met

Ingredient Family: formIngredients

Outline Display: A conditionally enabled widget for {{columnName}} that is only enabled when {{enabled}}.

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 $parentTable or new (type filter: any type)
    The column to represent
    Set ty only when columnName names a new column (not in $parentTable).

  • enabled : formula (returns bool; required, non-nullable)
    A boolean formula using previous fields that determines whether the widget is visible
    Scope: all columns of $formFieldsTable (reference as [ColumnName], e.g., [Name], [Price])

Optional

  • cssWidth : constant value (type: integer; required, non-nullable)
    Width between 1 and 12

  • customLabel : formula (returns text; optional)
    A custom label for the dropdown (leaving this empty uses the column name as the label)
    Scope: none – this formula does not accept column references or handler params.