Document Variable Master

Modified on Mon, 9 Jun at 7:31 PM

Managing Document Variables

Document Variables are used to manage dynamic placeholders throughout the system for creating contracts, legal documents, and templates. These variables get automatically filled with data from the system when generating documents, enabling standardized document creation and reducing manual data entry. Variables can be client information, case details, or any other system data that needs to be dynamically inserted into documents systematically across the platform. 

Accessing Document Variables

  1. Navigate to the Settings section by clicking the settings icon in the header bar on the left side
  2. Under the Common Master section, click on Document Variables



Managing Existing Document Variables

The Document Variables page displays all document variables in a table with:

  • Document variable name with system format
  • Variable type (Single Line Text, Multi-line Text, List, System Variable)
  • Description
  • Resource association
  • Status
  • Edit action button

You can:

  • Add new document variables by clicking the Plus (+) button in the top right corner
  • Search across all columns to find specific document variables
  • Edit a document variable by clicking the edit button in the action column
  • Change status by editing and updating the active toggle


 

Existing Document Variables grid view showing variable names, types, and status indicators


Adding a New Document Variable

  1. On the Document Variables page, click the Plus (+) button in the top right corner
  2. In the form, configure the following sections:


Basic Information

  • Document Variable: Enter the variable name in lowercase format. The system will automatically add ${} formatting
  • Type: Select the variable type using radio button options:
    • Single Line Text: For short text inputs and simple data fields
    • Multi-line Text: For longer text content and detailed descriptions
    • List: For dropdown selections with predefined options
    • System Variable: For automatically populated system data


Variable Configuration

  • Description: Enter an optional description explaining the variable's purpose and usage
  • Resource: Select which module this variable relates to using dropdown options:
    • Client: Client-related information
    • Employee: Employee data
    • User: User information
    • Other: General or miscellaneous data


List Type Configuration (visible when List type is selected)

  • List Items: Add predefined options that users can select from
    • Click the plus icon to add multiple list items
    • Each item will appear as a dropdown option during document creation
    • Items can be edited or removed as needed


System Variable Configuration (visible when System Variable type is selected)

  • System Variable: Select the specific system field to link from the dropdown
    • Available options depend on the selected Resource
    • Links directly to database fields for automatic population


Status Configuration

  • Active: Toggle button set to "Active" (default) or "Inactive"
  1. Click Submit to create the new document variable


Adding a new Document Variable form showing all configuration options and variable types


Variable Format and Usage


Standard Format All document variables follow a specific format:

  • Start with $ symbol
  • Enclosed in curly brackets {}
  • All lowercase letters
  • Example: ${customer_name_en}, ${agreement_number}, ${case_reference}


Variable Types


Single Line Text Variables Used for simple text inputs that users manually enter during document generation:

  • Names, addresses, reference numbers
  • Short descriptions or identifiers
  • Custom fields requiring brief text input


Multi-line Text Variables Used for longer content that may span multiple lines:

  • Detailed descriptions or clauses
  • Terms and conditions content
  • Notes or special instructions


List Variables Provide predefined dropdown options for consistency:

  • Contract types, payment terms
  • Standard clauses or provisions
  • Predefined legal language options


 

Configuring list-type variables with multiple dropdown options



System Variables Reference

System Variables automatically populate with data from various system modules. The available options depend on the selected Resource:

Other Module Variables

VariableDescription
current_dateCurrent system date
agreement_numberAuto-generated agreement number

Client Module Variables

VariableDescription
customer_typeType of customer (Individual/Company)
customer_opening_dateClient account opening date
customer_company_registration_idCompany registration ID
customer_name_enClient name in English
customer_name_arClient name in Arabic
customer_primary_name_enPrimary contact name in English
customer_primary_name_arPrimary contact name in Arabic
customer_primary_emailPrimary contact email
customer_primary_addressPrimary contact address
customer_primary_phonePrimary contact phone
customer_primary_nationality_enPrimary contact nationality in English
customer_primary_nationality_arPrimary contact nationality in Arabic
customer_primary_national_idPrimary contact national ID
customer_primary_passport_numberPrimary contact passport number

Employee Module Variables

VariableDescription
emp_idEmployee ID
emp_titleEmployee title
emp_nameEmployee name
emp_joining_dateEmployee joining date
emp_phoneEmployee phone number
emp_emailEmployee email address
emp_genderEmployee gender
emp_office_enEmployee office in English
emp_office_arEmployee office in Arabic
emp_dobEmployee date of birth
emp_passportEmployee passport number
emp_addressEmployee address
emp_job_title_enEmployee job title in English
emp_job_title_arEmployee job title in Arabic
emp_leaving_dateEmployee leaving date

User Module Variables

VariableDescription
user_name_enUser name in English
user_name_arUser name in Arabic
user_emailUser email address
user_mobileUser mobile number
user_office_enUser office in English
user_office_arUser office in Arabic
user_department_enUser department in English
user_department_arUser department in Arabic
user_hourly_rateUser hourly billing rate
user_codeUser code

Reference: System variables are automatically populated when generating contracts, eliminating manual data entry and ensuring consistency.



System Variables Automatically populated from system data:

  • Client information from client records
  • Employee details from employee management
  • User information from user profiles
  • Dates, reference numbers, and calculated fields











Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article