smartsuite_move_layout_field
Reorder a field in a SmartSuite record-view layout, move it under a section or to another tab, or set its column width.
Instructions
Move/arrange a field in the record-view layout — reorder it, place it under a section, or move it to a different tab. Requires readwrite/admin + SMARTSUITE_ENABLE_SCHEMA_WRITE. To move a field to ANOTHER tab, pass toTab = the destination tab id: the field is removed from its current tab and added to the destination (this is the cross-tab move — plain reorder can't pull a field in from another tab). Otherwise it reorders within the current layout. Pass afterField = a field slug OR a section__ slug to position this field right after it (right after a section marker = first field under that section); omit afterField for the end. In two-column layouts the field is placed alone in its row — which is NOT the same as full width: the column span lives on the field as params.width (1 = half, so the row renders with an empty right slot; 2 = spans both columns). Pass fullWidth:true/false to set it; that is a change_field write, so with fullWidth and no afterField/toTab this only changes the span and does not reorder anything. When tabs are enabled and toTab is NOT used, tabId is required (a tab id, "all", or "top") — with tabs on, the record view renders per-tab layouts, so a top-level edit is saved but invisible. Dry-run preview unless confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The field slug to move. | |
| tabId | No | For within-layout reorder when tabs are enabled (required then): a tab id, "all", or "top". Ignored when toTab is set. Omit when tabs are disabled. | |
| toTab | No | Destination tab id — moves the field to that tab (removing it from its current tab). Use this for cross-tab moves. | |
| confirm | No | Must be true to apply (default false = preview). | |
| fullWidth | No | Set the field's record-view column span: true = spans both columns (params.width 2), false = half width (1). Omit to leave the span alone. Given without afterField/toTab, only the span changes — the field is not reordered. | |
| afterField | No | Field slug or section__ slug to place this field after (default: end). | |
| applicationId | Yes | The application (table) ID. |