Global Variables
Global Variables define the data schema for your application in the Variable Center. They determine what types of information can be collected and stored across group sessions.
Overview
Global Variables are the foundation of your Variable Center configuration. They define:
- What data can be collected
- What type each piece of data should be
- Whether the data is required or optional
- Whether users can edit the data
Adding Global Variables
- Navigate to Variable Center → Settings
- Select your application
- Click the "Add Variables" button
- Configure each variable's properties
- Click Save to apply changes
Variable Properties
| Property | Description | Required |
|---|---|---|
| Field | Unique identifier for the variable (no spaces, use camelCase) | Yes |
| Type | Data type of the variable | Yes |
| Values | Allowed options (for enum type only) | Conditional |
| Editable | Whether users can modify the value at runtime | No |
| Mandatory | Whether the field must have a value for every user | No |
| Selected | Whether the field is active/included in sessions | No |
Variable Types
Text
Free-form text input. Use for names, descriptions, comments, etc.
Type: text
Example values: "John Doe", "This is a comment", "ABC-123"Number
Numeric values (integers or decimals). Use for quantities, scores, measurements.
Type: number
Example values: 42, 3.14, -10, 0Boolean
True/False values. Displayed as "Yes" or "No" in the interface.
Type: boolean
Example values: true, falseDatetime
Date and time values. Use for timestamps, deadlines, scheduled events.
Type: datetime
Example values: "2024-01-15T14:30:00Z"Enum
Predefined list of allowed values. Use for status fields, categories, selections.
Type: enum
Values: ["Option A", "Option B", "Option C"]Common Variable Examples
User Information
Field: firstName Type: text Mandatory: true
Field: lastName Type: text Mandatory: true
Field: email Type: text Mandatory: trueStatus Tracking
Field: completionStatus Type: enum Values: ["Not Started", "In Progress", "Completed"]
Field: isApproved Type: boolean
Field: submittedAt Type: datetimeData Collection
Field: score Type: number Editable: true
Field: comments Type: text Editable: true
Field: agreedToTerms Type: boolean Mandatory: trueMandatory vs Optional Variables
Mandatory Variables
- First Name, Last Name, and Email are typically mandatory
- These are automatically included in all group sessions
- Cannot be skipped when adding users
Optional Variables
- Custom variables you define for your specific use case
- Can be included or excluded from individual sessions
- May or may not have values for each user
Editing Variables
Modify Existing Variables
- Click on a variable row to select it
- Update the properties as needed
- Click Save
Warning: Changing a variable's type may affect existing data. Consider creating a new variable instead.
Remove Variables
- Select the variable to remove
- Click Delete
- Confirm the deletion
Note: Removing a variable does not delete data already collected. However, removed variables will not appear in new sessions.
Connecting Variables to Elements
Global Variables can be connected to elements in your application builder:
- In the builder, select an element
- Go to Connect Tab
- Under "Connect to Variable Center", select the variable
- The element's value will sync with the variable
This allows form inputs to automatically save to Variable Center and pre-populate from existing data.
Best Practices
Use clear field names -
firstNameis better thanfnorfield1Choose appropriate types - Use
numberfor values you'll calculate with,textfor free-form inputSet sensible defaults - Use
mandatoryonly for truly required fieldsPlan for growth - Consider what data you might need in the future
Document your schema - Keep a record of what each variable represents
Test before production - Verify variables work correctly in a test session
Questions?
If you have any questions, please don't hesitate to contact us. Alternatively, you can submit an issue on this platform.
Useful Links:
Settings Overview - https://help.acenji.com/#/./shared-concepts/variable-center/settings/index Group Session - https://help.acenji.com/#/./shared-concepts/variable-center/settings/group-session/index Connect Tab - https://help.acenji.com/#/./create-web-application/website-builder/floating-design-panel/element-section/connect-tab/index