Skip to main content

templateElementCreateInput

Create a new field or element on a Template page.

Fields

FieldTypeRequiredDefaultDescription
templateIdID!YesTemplate to add the element to
elementTypeString!YesField type (e.g. SIGNATURE, TEXT)
pageInt!YesPage number
axFloatNo0Start X coordinate
ayFloatNo0Start Y coordinate
bxFloatNo0End X coordinate
byFloatNo0End Y coordinate
signerIntNo1Signer index
alignStringNoText alignment
fieldOrderIntNoTab order
fontNameStringNoFont name
fontSizeIntNoFont size
hideBorderBooleanNoHide border
labelStringNoField label
labelExtraStringNoAdditional label
helpTextStringNoHelp text
optionalBooleanNoOptional field
optionsStringNoDropdown/radio options
roleStringNoRole name
substantiveBooleanNoSubstantive field
validationIntNoValidation rule
valueStringNoDefault value
logicGroupStringNoLogic group
logicActionIntNoLogic action
mapToStringNoMap-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"
})
}

Export This Article

Save a copy of this page as PDF or plain text.