move_question
Move an existing item (question, page break or display block) to a specific position by code. Choose either after or before, referencing another field's code. Move to the front: before references the current first field's code. Move to the end: after references the current last field's code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The field code to move (a question, a Breaker or a display block) | |
| after | No | Move after this code; choose either after or before | |
| before | No | Move before this code; choose either after or before | |
| formId | Yes | form ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 0-based index after the move | |
| code | No | The question that was moved | |
| from | No | 0-based index before the move | |
| formId | No | The form that was edited | |
| changed | No | false when the question already sat at the target position | |
| position | No | Current index — returned instead of from/to when no move was needed | |
| questionCount | No | Total question / page-break count |