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

    Function handleOutcomeConfigChange

    • Handles inline outcome config field changes and persists them to <collection>.<triggerId>.outcomes.<outcomeId>.config.<configKey>.

      See handleConditionConfigChange for why collection exists: Keyword Event Trigger outcomes live in system.eventTriggers, not system.triggers.

      Parameters

      • sheet: object

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

      • dataset: DOMStringMap

        The changed element's dataset. Must carry triggerId, outcomeId 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 outcome config (sheet-side routing)
      handleOutcomeConfigChange(this, target.dataset, target.value, "eventTriggers");