templateElementUpdateInput
Update an existing element on a Template. Same fields as templateElementCreateInput but targets an existing element.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
templateElementId | ID! | Yes | Element to update |
elementType | String! | Yes | Field type (e.g. SIGNATURE, TEXT, DATE, INITIALS) |
page | Int! | Yes | Page number |
ax | Float | No | Starting x coordinate |
ay | Float | No | Starting y coordinate |
bx | Float | No | Ending x coordinate |
by | Float | No | Ending y coordinate |
signer | Int | No | Signer index |
role | String | No | Role name |
label | String | No | Field label |
labelExtra | String | No | Additional label text |
value | String | No | Default value |
helpText | String | No | Help text shown to signer |
fontName | String | No | Font for text display |
fontSize | Int | No | Font size in pixels |
align | String | No | Text alignment (left, right, centre) |
fieldOrder | Int | No | Field ordering on signing page |
optional | Boolean | No | Whether the field is optional |
hideBorder | Boolean | No | Hide field border |
substantive | Boolean | No | Mark as substantive field |
options | String | No | Options for dropdown/radio fields |
validation | Int | No | Validation rule to apply |
logicGroup | String | No | Conditional logic group |
logicAction | Int | No | Conditional logic action |
mapTo | String | No | Map field to a contact or data source |
Example
mutation UpdateElement {
updateTemplateElement(input: {
templateElementId: "ZWxlbS0x"
elementType: "TEXT"
page: 1
ax: 100
ay: 200
bx: 350
by: 230
label: "Updated Label"
})
}