Create and Manage Variables
This guide explains how to create variables in Authorium to store and reuse data dynamically across forms, documents, and workflows. Variables help automate data entry, ensure consistency, and adapt content to individual projects.
Where You Can Create Variables
Variables in Authorium can be created in different contexts depending on where you need them:
- Template-Level Variables: Defined within a specific project template. These are the most common and allow you to reuse values across documents and forms in the same project.
- Project-Level Variables: Defined and used only within a specific project. These are useful for information that changes from project to project.
To Create Template-Level Variables
- Go to Configuration from the sidebar.
- In the Project Template tab, click View Template to open the project.

- Select the Variables tab.
- Click + Add Variable.

- Fill in the required fields based on the Variable Type:
- Mapped to Existing Data:
- Enter the Name.
- The Key will auto-fill based on the Name.
- Select a Data Source from the dropdown.
- Choose the appropriate Project Content value based on the selected Data Source.
- Custom:
- Enter the Name.
- The Key will auto-fill based on the Name.
- Select a Data Type from the list (Currency, DateTime, Radio, Select, Textfield).
- Enter the Variable Content.
- Mapped to Existing Data:
- Click Save Changes to apply the variable to the project.

Use Custom Variables in Templates
Once you’ve created custom variables, you can insert them into both collaborative documents and forms to personalize content dynamically.
To Use Custom Variables in Collaborative Documents:
- In the Project Template workflow, add or open a Collaborative Document Management stage.

- Click + Add Document.

- Select New Collaborative Document Template.

- Enter Document Title and assign a Document Category.
- Click Save to add document.

- Open the newly created document.

- Type
{{to trigger the merge field menu and select the desired variable from the list. - Alternatively, click Insert > Merge Field to insert the variable manually.
- Mark this section of the document complete.

- Click the Kebab menu and select Publish to finalize the project template.

To Use Custom Variables in Forms:
- In the Workflow tab, open a Form Builder stage.

- Click Edit Form.

- Drag and Drop the Variable component into the form canvas.

- Enter a descriptive label and select the appropriate variable to ensure the component is configured correctly.
- Click Save to apply changes.

- Click Save again to apply the changes to the form template.

- Click the Kebab menu and select Publish to finalize the project template.

Naming Conventions for Variables
When naming variables, use clear and consistent conventions to make them easy to identify and reuse across content. Here are some best practices:
- Be descriptive: Use names that reflect the variable’s purpose (e.g.,
estimatedDeliveryDate,costPerUnit). - Avoid spaces and special characters: Stick to letters, numbers, and underscores or camelCase.
- Stay consistent: Choose either
camelCaseorsnake_caseand apply it across all variables. - Use lowercase for keys: The variable key should be simple and lowercase (e.g.,
total_price,startDate).
Defining Values for Variables
Each variable must have a value that defines the content it will display when used. Authorium supports the following value types:
- Text: Freeform text values (e.g., “USA”, “Procurement Lead”)
- Numbers: Integer or decimal values (e.g., 100, 45.75)
- Currency: Values formatted with currency symbols (e.g., $1,200.00)
- Date: Selectable calendar dates (e.g., 2025-10-01)
- Dropdown: Predefined list of selectable options (e.g., [Yes, No, Not Applicable])
See Also
To complement your knowledge of this process, check the following pages: