Form Fields
DocPayload supports interactive form fields as inline tags, rendered cross-format:
- PDF: emitted as AcroForm fields, fillable in any standard PDF reader (Adobe Reader, Foxit, browser viewers).
- DOCX: emitted as Structured Document Tag (SDT) content controls, fillable in Microsoft Word and compatible editors.
The same template definition produces both — recipients on either format see the same set of editable fields.
Seven field types are supported: text input, text area, checkbox, radio button, choice (dropdown), list box, and date picker.
{ "p": "Full Name: [textfield, fullName, John Doe, 200|20]" }
Quick start
A minimal interactive form:
{
"content": [
{ "h2": "Application" },
{ "p": "Full Name: [textfield, fullName, , 220|22]" },
{ "p": "Email: [textfield, email, , 250|22]" },
{ "p": "Department: [choicefield, dept, Engineering|Sales|Operations, 0, 180|22]" },
{ "p": "[checkbox, agree, false, 14|14] I accept the terms and conditions" },
{ "p": "Notes:[br][textarea, notes, , 400|80]" }
]
}
Recipients open the document in any compatible viewer — Adobe Reader, Foxit, or browser PDF viewers for PDF; Microsoft Word, LibreOffice, or Google Docs for DOCX — and type / select directly.
What's next
- Field types — full reference for all seven supported fields with parameters and examples.
- Data binding — pre-fill fields from
$datareferences for review-and-edit workflows.