Mergefields Management
The Mergefields management page allows administrators to create, edit, organize, and manage merge fields used throughout the system. Merge fields are dynamic placeholders that can be inserted into templates, emails, and documents to automatically populate with relevant data.
Quick Start
To get started: Click +Add to create a new merge field, or use the search box to find existing fields. Click Edit next to any field to modify its properties. Use the up/down arrows to reorder fields, and the status icons to activate/deactivate them.
The toolbar provides essential navigation and management controls:
| Button |
Function |
Description |
| +Add |
Create New Field |
Opens the merge field creation form to add a new field |
| Back |
Navigate Back |
Returns to the previous page in browser history |
| Close |
Close Window |
Closes the current window or returns to Control Panel |
| â?² |
Refresh Page |
Reloads the page to show updated data |
| UnDelete |
View Deleted |
Shows deleted merge fields for recovery (only visible when viewing active fields) |
| Search |
Execute Search |
Searches fields by name, label, tag, or category |
| All |
Clear Search |
Clears search filters and shows all merge fields |
Search Functionality
The search feature allows you to quickly locate specific merge fields using multiple criteria:
Search Criteria
- Field Name: The internal name of the merge field
- Field Label: The display name shown to users
- Field Tag: The merge tag syntax (e.g., {{field_name}})
- Category: The organizational category the field belongs to
Search is case-insensitive and supports partial matches. Press Enter in the search box or click the Search button to execute the query.
Data Table Columns
The merge fields table displays comprehensive information about each field:
| Column |
Description |
Features |
| Checkbox |
Selection control for bulk operations |
Check individual fields or use header checkbox to select all visible |
| Field Name |
Internal identifier for the merge field |
Sortable, searchable, used in system references |
| Label |
User-friendly display name |
Sortable, searchable, shown in field selection interfaces |
| Tag |
Merge syntax for templates |
Displayed in code formatting, copy-paste ready |
| Category |
Organizational grouping |
Sortable, searchable, helps organize fields by purpose |
| Order |
Display sequence number |
Sortable, determines order in field selection lists |
| Actions |
Field management controls |
Edit, Delete, Move Up/Down buttons |
| Status |
Active/inactive indicator |
Click to toggle between active and inactive states |
| ID |
Unique database identifier |
Sortable, useful for technical reference |
Individual Field Actions
Each merge field row provides specific action buttons:
| Button |
Function |
Result |
| Edit |
Modify Field |
Opens the field editor to change properties, labels, tags, and settings |
| Delete |
Soft Delete |
Marks field as deleted (recoverable via UnDelete view) |
| â?² |
Move Up |
Decreases sort order, moving field higher in lists |
| â?¼ |
Move Down |
Increases sort order, moving field lower in lists |
Status Indicators
The status column shows the current state of each merge field:
- â?쳌 Green Check: Field is active and available for use
- â?쳌 Gray Dash: Field is inactive and hidden from selection interfaces
Click the status icon to toggle between active and inactive states instantly.
Bulk Operations
Perform actions on multiple merge fields simultaneously using the selection checkboxes:
Selection Methods
- Individual Selection: Check boxes next to specific fields
- Select All Visible: Use the header checkbox to select all currently displayed fields
- Cross-Page Selection: DataTables preserves selections across pagination
Available Bulk Actions
Normal View Actions
- Delete Selected: Soft-deletes all selected fields (moves to deleted state)
Deleted View Actions
- Un-Delete Selected: Restores selected fields to active state
- Permanently Delete: Hard-deletes selected fields (irreversible)
Bulk Operation Tips
Confirmation Required: All bulk operations require confirmation before execution. Permanent Deletion: Hard-delete operations cannot be undone - use with extreme caution.
Field Ordering System
Merge fields use a sort order system to control their appearance in selection interfaces:
Ordering Workflow
- Current Position: Each field has a numeric sort order value
- Move Up: Swaps sort order with the previous field (lower number)
- Move Down: Swaps sort order with the next field (higher number)
- Automatic Reordering: System maintains sequential ordering after moves
Fields with lower sort order numbers appear first in selection lists and interfaces.
Deletion and Recovery Workflow
The system uses a three-state deletion model for data safety:
Deletion States
| State |
IsActive Value |
Description |
Visibility |
| Active |
1 or NULL |
Field is available for use |
Shown in normal view |
| Inactive |
0 |
Field is hidden but not deleted |
Shown in normal view |
| Deleted |
2 |
Field is soft-deleted (recoverable) |
Only in deleted view |
Deletion Workflow Steps
- Soft Delete: Click Delete button or use bulk delete â?? IsActive = 2
- View Deleted: Click UnDelete button to access deleted items view
- Recovery Option: Un-Delete selected items â?? IsActive = 1
- Permanent Deletion: Hard delete removes records from database (irreversible)
Permissions and Security
Access to the Mergefields management page requires specific administrative permissions:
Permission Requirements
- Administrator Access: User ID must be 1 (super admin) OR
- Content Editor: User must have "Content_Edit" permission in their sponsor record
- Access Denied: Users without proper permissions see "DENIED" message and are blocked
The system checks permissions on every page load to ensure security compliance.
DataTable Features
The merge fields table includes advanced DataTable functionality:
Table Controls
- Pagination: 25, 50, 100, or All records per page
- Sorting: Click column headers to sort (excludes checkbox, actions, and status columns)
- Search: Built-in DataTable search (separate from main search box)
- State Persistence: Table remembers your settings between sessions
- Responsive Design: Adapts to different screen sizes
Sorting Capabilities
Most columns support ascending and descending sort:
- Field Name (alphabetical)
- Label (alphabetical)
- Tag (alphabetical)
- Category (alphabetical)
- Order (numerical)
- ID (numerical)
Creating New Merge Fields
To create a new merge field:
- Click +Add Button: Located in the toolbar
- Complete Field Properties: Enter field name, label, tag syntax, and category
- Set Sort Order: Choose where the field appears in selection lists
- Configure Settings: Set active status and any additional properties
- Save Field: Submit the form to create the merge field
New fields are automatically assigned the next available sort order number.
Best Practices
Naming Conventions
- Field Names: Use descriptive, lowercase names with underscores
- Labels: Create user-friendly display names
- Tags: Follow consistent merge tag syntax (e.g., {{field_name}})
- Categories: Group related fields for better organization
Organization Tips
- Logical Grouping: Use categories to organize fields by purpose
- Sort Order: Arrange frequently-used fields first
- Status Management: Deactivate unused fields rather than deleting
- Regular Review: Periodically audit and clean up obsolete fields
Summary
The Mergefields management page provides comprehensive tools for creating, organizing, and maintaining dynamic merge fields used throughout the system. Use the search functionality to quickly locate fields, leverage bulk operations for efficiency, and maintain proper organization through categories and sort ordering. The three-state deletion system ensures data safety while allowing for easy recovery of accidentally deleted fields. Regular maintenance and consistent naming conventions will keep your merge field library organized and user-friendly.