Trigger Schema
Triggers run actions when an expression becomes true. Prefer simpler properties like visibleIf, enableIf, setValueIf, and setValueExpression unless a root-level trigger is specifically needed.
Common Trigger Types
Section titled “Common Trigger Types”setvalue— set a question valuecopyvalue— copy one question value to anotherskip— skip to another pagecomplete— complete the form
Minimal Shape
Section titled “Minimal Shape”{ "type": "setvalue", "expression": "{sameAsBilling} = true", "setToName": "shippingAddress", "setValue": "{billingAddress}"}Properties
Section titled “Properties”- Type:
string - Required: Yes
Trigger type.
expression
Section titled “expression”- Type:
expression - Required: Yes
Boolean expression that activates the trigger.
setToName
Section titled “setToName”- Type:
string
Question or calculated value name to update.
setValue
Section titled “setValue”- Type:
value | expression
Value assigned by a setvalue trigger.
fromName
Section titled “fromName”- Type:
string
Source question for a copyvalue trigger.
gotoName
Section titled “gotoName”- Type:
string
Page or question name used by skip-style triggers.
Example
Section titled “Example”{ "triggers": [ { "type": "complete", "expression": "{screenOut} = true" } ]}