The Add Record Modal pattern is an overlay UI component that presents a searchable, selectable list of available records for association. It acts as a focused interaction point for linking or attaching items to a parent record, enabling users to browse existing entries, filter by name, switch between directional or categorical views, and confirm or cancel the selection — all without navigating away from the current context.

The Add Record Modal serves users who need to associate or link records within a sales compensation management platform without losing their current context.
User | Job to Be Done |
|---|---|
Comp Plan Admin | "Quickly find and attach the right record to a comp plan before the plan cycle closes, without navigating away from the record I'm editing." |
Plan Manager | "Browse all available records in one place so I can confirm what already exists before adding a new association." |
System Admin | "Review and manage all linked records to ensure there are no duplicate or stale associations across the system." |
Analyst / Read-Only | "Understand what records are available and how they relate to each other, without the risk of making unintended changes." |
Users managing compensation plans need to quickly search, select, and associate related records to a parent object (positions, relationships, participants) from within their current editing context. Without a focused overlay experience, users are forced to navigate away mid-task, losing context and progress. When associations require further lookup or configuration, the inability to layer additional modals over an existing one forces users to abandon their current workflow entirely, creating friction and increasing the risk of incomplete or incorrect plan setup..
Modal | Centered overlay modal (typically 70% viewport width, a secondary nested modal (typically 40%- 20% viewport width) layered on top to handle focused lookup, confirmation, or sub-selection tasks without dismissing the parent context.. |
Buttons | Primary filled button for key selection; secondary borderless button; tertiary with border button. |
When to Use a Modal (Triggers)
Modals should be used when a user needs to complete a focused task mid-flow without navigating away from their current context. Common triggers include:
Adding or editing items inline — e.g. Add Condition, Add Version, Edit Version.
Selecting a value from within a field or text box — e.g. selecting a formula, lookup record, or user from an input.
Completing a temporary workflow that requires confirmation before returning to the main screen.
Primary Modal (70% viewport width)
# | Element | Description |
|---|---|---|
1 | Modal Title | Names the association action being performed (e.g. "Add Relationships"). Sets context for the user within the overlay. |
2 | Table | Displays existing associated records with sortable columns (Name, Description, Start Date, End Date). |
3 | Pagination Footer | Shows current range and total count (e.g. "1–7 of 7") beneath the results table. |
5 | Search Bar | One or more inputs (text search, dropdowns) to narrow the record set without page reload. |
7 | Action Footer (Cancel / Add) | Confirms or dismisses the association. "Add" is disabled until at least one record is selected. |














Primary Modal (70% viewport width)
Default View: Renders the All Results table showing current associations immediately.
Filtering & Search: Directional tabs switch relationship scope; live search filters available records without resetting state.
Selection: Multi-select via checkboxes. Enables the Add CTA (Add is disabled when no rows are selected).
Pagination & Empty States: Pagination appears below the table when needed; failed searches display an explicit empty state.
Actions: Add confirms and updates context; Cancel / × discards changes.
Follows Primary Modal behaviors for search, cancel, and empty states, with the following scope changes:
Context: Opens over the primary modal without closing it, preserving parent state.
Actions: Select populates the field in the primary modal and closes the overlay; Cancel / × returns to the primary modal without changes.
Modal Title
Poppins 20px, semi-bold (weight 600), left-aligned, no background color
× close icon always right-aligned in the modal header
Modal Size
Primary modal: 70% viewport width, centered horizontally and vertically
Nested modal: 70% viewport width, centered horizontally and vertically
Max height 90% viewport; never full screen on desktop
Table & List
Column headers in Title Case;
Checkbox always left-aligned and vertically centered within the row
Table will always have a header if it is an input form and not a single table.
Footer & Action Buttons
Footer anchored to the bottom, never scrolls with content
Primary CTA (Add / Select) right-aligned, never truncated, visually disabled until a valid selection is made
Cancel always tertiary/text style, placed left of the primary CTA
One primary button per modal footer only
Issue | Description |
|---|---|
No Field Validation | No inline validation or helper text to guide expected input format. |