Configure Template Form
When creating a document from a template without pre-filling all dynamic fields, the signer will need to complete the required information to generate and sign the document. This endpoint configures the form to enhance the signer’s experience and minimize errors.
Configure Form
POST
https://api.zapsign.com.br/api/v1/templates/update-form
Headers
Authorization*
string
apiToken ahead of the "Bearer" text.
Ex: Bearer c7f35c84-7893-4087-b4fb-d1f06c23
Request Body
custom_intro
string
Message with instructions for the signer (displayed at the beginning of the form). Default: ""
youtube_video_code
string
Adds a YouTube video at the start of the form. If the video URL is https://www.youtube.com/watch?v=Fi0qJgEjYAw
, the code is Fi0qJgEjYAw
. Default: ""
inputs [variable]
array <input>
Configuration of dynamic fields.
Dynamic Field Configuration (inputs)
Configures the form fields to assist the signer and prevent errors.
variable (string, required): The name of the dynamic field inside the DOCX file. Example: {{name}}.
input_type (string, optional): Field type to validate the format. Default: "input".
input
Short text.
Email address.
signer_fullname
Full name
radio
Multiple-choice option (requires "options" parameter).
checklist
Checkbox (requires "options" parameter).
date
Date in dd/mm/yyyy format.
ext-date
Written signature date (automatically filled with the document's signing date).
date-signature
Signature date in dd/mm/yyyy format (automatically filled with the document's signing date).
label (string, optional): Field title in the form. Example: Full Name. Default: Same as variable, without brackets {{}}.
help_text (string, optional): Help text displayed below the field title. Example: Maria Perez. Default: "".
options (string, optional): Options for multiple-choice (radio) or checkbox (checklist) fields. Example: "Option A; Option B; Option C".
required (boolean, optional): Defines whether the field is mandatory. Default: true.
order (integer, optional): Order in which the field appears in the form.
Request
Response
Last updated
Was this helpful?