move_question
Reposition any question or page break to a precise location in your form. Reference another field's code to place it before or after, including moving to the front or end.
Instructions
Move an existing question or page break 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 or a Breaker) | |
| 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 |