templateElementCreateInput
Create a new field or element on a Template page.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
templateId | ID! | Yes | — | Template to add the element to |
elementType | String! | Yes | — | Field type (e.g. SIGNATURE, TEXT) |
page | Int! | Yes | — | Page number |
ax | Float | No | 0 | Start X coordinate |
ay | Float | No | 0 | Start Y coordinate |
bx | Float | No | 0 | End X coordinate |
by | Float | No | 0 | End Y coordinate |
signer | Int | No | 1 | Signer index |
align | String | No | — | Text alignment |
fieldOrder | Int | No | — | Tab order |
fontName | String | No | — | Font name |
fontSize | Int | No | — | Font size |
hideBorder | Boolean | No | — | Hide border |
label | String | No | — | Field label |
labelExtra | String | No | — | Additional label |
helpText | String | No | — | Help text |
optional | Boolean | No | — | Optional field |
options | String | No | — | Dropdown/radio options |
role | String | No | — | Role name |
substantive | Boolean | No | — | Substantive field |
validation | Int | No | — | Validation rule |
value | String | No | — | Default value |
logicGroup | String | No | — | Logic group |
logicAction | Int | No | — | Logic action |
mapTo | String | No | — | Map-to identifier |
Example
mutation CreateElement {
createTemplateElement(input: {
templateId: "dHBsLTE="
elementType: "TEXT"
page: 1
ax: 100
ay: 200
bx: 300
by: 230
signer: 1
label: "Full Name"
})
}