Skip to main content

Overview

Template tags can be customized using various options to control their behavior and appearance. These options are specified within the tag syntax and can include properties such as size, alignment, position, validation, default values, and more.

Options syntax

Options are specified within the template tag using key-value pairs separated by underscores.
There are two syntaxes for specifying options, some options use the option_<key>_<value> syntax, while others use the <key>_<value> syntax.

option_<key>_<value>

long

<key>_<value>

long

PDF units

Many tag options use PDF units for measurements. In PDF units, 1 inch is equal to 72 units. A standard letter-size document (8.5 x 11 inches) is therefore 612 x 792 PDF units.

Options

Optional

The optional option allows you to specify whether a tag field is optional or required.
long
short

Width

The width option allows you to set the width of the tag field in PDF units.
long
short

Height

The height option allows you to set the height of the tag field in PDF units.
long
short

Font size

The font_size option allows you to set the font size of the text within the tag field.
long
short

Align

The align option allows you to align the tag field to the left , center, or right within its designated area.
long
short

Size

The size option allows you to set the size of the tag field (width and height) in PDF units
long
short

Offset

The offset option allows you to set the position offset of the tag field in PDF units.
Useful for fine-tuning the placement of the tag field, such as radio or checkbox, within the document.
Positive values move the field right and down, while negative values move it left and up.
long
short

Value

The value option allows you to set a default value for the tag field.
When using default values that contain spaces or special characters, ensure to properly encode them using an URL encoder to avoid parsing issues.
Default value can currently be set for text, multiline, radio, and checkbox tags.
long
short

Data ID

The dataid option allows you to assign a custom data identifier to the tag field for easier reference.
long
short
See the Templating data guide for more information.