Skip to main content

DocumentElement

A DocumentElement is a field on a sent Document. It mirrors the structure of a TemplateElement but includes the actual values completed by signers or senders.

DocumentElements are accessed via Document.elementConnection (sender fields) or Recipient.elementConnection (signer fields).

Fields

FieldTypeDescription
idID!Unique identifier
elementTypeString!Field type (e.g. SIGNATURE, TEXT)
pageIntPage number
axFloatStart X coordinate
ayFloatStart Y coordinate
bxFloatEnd X coordinate
byFloatEnd Y coordinate
alignStringText alignment
labelStringField label
labelExtraStringAdditional label text
helpTextStringHelp text
valueStringCompleted value
optionalBooleanWhether the field is optional
substantiveBooleanWhether the field is substantive
validationIntValidation rule ID
optionsStringOptions for dropdowns/radio buttons
signerIntSigner index
roleStringRole name
fontNameStringFont name
fontSizeIntFont size
hideBorderBooleanHide border
fieldOrderIntTab order
logicGroupStringLogic group
logicActionIntLogic action
mapToStringMap-to identifier
linkStringShort-lease URL if the element is a file download

Query

query GetDocumentFields {
document(id: "ZG9jMWVmMjdkYWYtMGJlMS0xMWYwLWJiYjUtMDZlNDc2YTA3NTY5") {
elementConnection {
documentElements {
id
elementType
label
value
page
}
}
recipients {
id
firstName
lastName
elementConnection {
documentElements {
id
elementType
label
value
}
}
}
}
}
  • Document — the document these elements belong to
  • TemplateElement — the template-level equivalent
  • Recipient — recipients have their own element connections

Export This Article

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