Notice: Some users are experiencing issues when logged into multiple Google accounts on the same web browser. If the Add-on does not load for you, please be sure that you are only logged in with the account that you used to install Doc Variables.

Documentation

Official docs at:
docs.docvars.com

Basic Syntax

Documentation infographic

Field Types

Type: Text

The default variable type.

Examples: 

${Variable Name}

${*Required Variable}

${Variable Default::~Default Text}

Options: none

Form Field:

Type: Transform

Text field which transforms the output to the selected option.

Examples: 

${Variable Name::transform::uppercase}

Options: uppercase, lowercase, capitalize

Output:
uppercase:
CUSTOMER

lowercase:
customer

capitalize:
Customer

Type: Text Area

Generates a text area field for variables that require more user input.

Examples: 

${Variable Name::textarea}

${Variable Name::textarea::~Default text}

Options: none

Form Field:

Type: Date

Generates a calendar field to select specific dates.

Examples: 

${Variable Name::date}

${Variable Name::date::MM/DD/YYYY}

Options: Date Format

---

Formatting Options:

Input Example Description
YYYY 2014 4 digit year
YY 14 2 digit year
Q 1..4 Quarter of year. Sets month to first month in quarter.
M or MM 1..12 Month Number
MMM Jan Short Month Name
MMMM January Full Month Name
d 1..7 Day of the week
dd Mo..Su Two letter day of the week
ddd Mon..Sun Three letter day of the week
D or DD 1..31 Day of the Month
Form Field:

Type: Options

Generates a dropdown list of options to select for values.

Examples: 

${Variable Name::options::Option 1, Option 2, Option 3}

${Variable Name::options::"Longer Text Option 1", "Longer Text Option 2"}

${Variable Name::options::Option 1,~Default Option, Option 3}

Options: Comma-separated list of values

Form Field:

Type: Options-Values

Generates a dropdown list of options with name-value pairs to select for values.

Examples: 

${Variable Name::options-values::"Option 1":"Option 1 Value", "Option 2":"Option 2 Value"}

Options: Comma-separated list of name-value pairs in the format: "name":"value"

Form Field:
Output:
Option 1 Value
Learn more at:
docs.docvars.com