Body, Mind & Soul — API Reference
    Preparing search index...

    Function handleConditionConfigChange

    • Handles inline condition config field changes and persists them to <collection>.<triggerId>.conditions.<conditionId>.config.<configKey>.

      The collection argument names the document field the trigger lives in. Most sheets keep their triggers in system.triggers (the default). Keyword items keep their Event Triggers in system.eventTriggers, so a sheet that renders an Event Trigger's condition config must pass "eventTriggers", otherwise the write lands in the wrong collection and never persists.

      Parameters

      • sheet: object

        The sheet whose document receives the update (must expose document.update).

      • dataset: DOMStringMap

        The changed element's dataset. Must carry triggerId, conditionId and configKey.

      • value: any

        The new config value to store under configKey.

      • Optionalcollection: string = "triggers"

        Trigger collection on system the trigger lives in ("triggers" or "eventTriggers").

      Returns boolean

      true when the dataset carried the required keys and an update was issued; false otherwise (no update).

      // Keyword Event Trigger condition config (sheet-side routing)
      handleConditionConfigChange(this, target.dataset, target.value, "eventTriggers");