Set logic
editor_setLogicOverwrite the single conditional rule on a logic element identified by nodeId. Insert separate logic elements for additional rules; delete the element to remove its rule. Referenced question, page, and field IDs are validated. Read the document first with editor_getDocument to get valid IDs. When a rule shows a question, also set isHidden:true on that question so it is hidden by default. See load_skill("logic-rules").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formId | Yes | Form ID | |
| nodeId | Yes | nodeId of the logic element whose rule is being overwritten (from editor_getDocument). | |
| logicRule | Yes | Single replacement rule. Insert another logic block for each additional rule. |