← UX Page Patterns

Input Selection Patterns

Input Selection Pattern Definition

The Input Selection pattern is a form input component that allows users to select one or more records from a large dataset via a dedicated selection modal. It acts as a structured alternative to a standard dropdown, enabling users to search, browse, and confirm selections from paginated lists of records — without leaving the current form context.

Problem Statement

Standard dropdowns are limited to displaying a single attribute per option (e.g. just a name or just an email). When users need to identify the right record from a large dataset, a single line of context is often not enough — they may need to see both the name and email, or a description, to make a confident selection. Dropdowns also do not scale well with large datasets and offer no built-in search capability. The modal-based Input Selection pattern solves this by presenting records in a structured table with multiple columns of context (e.g. Name + Email, or Name + Description), combined with a dedicated search input — allowing users to quickly find and confidently select the right record.

image-20260930-122819.png

Component

Spec

Input Trigger

A text input field with a "..." button that opens the selection modal.

Empty State

Displays italic placeholder text "Select items" when no selection has been made.

Selected State

Displays the selected value(s) inside the input field. A clear "×" button appears to remove all selections.

Loading State

Skeleton/shimmer placeholders appear inside the field while data is being fetched.

Selection Modal

A modal with a search bar, sortable table or list, pagination, and Cancel / Select actions.

Anatomy

#

Element

Description

1

Field Label

Names the type of record being selected (e.g. "User", "Tags"). Indicates optional fields with "(Optional)" suffix.

2

Input Field

Displays current selection state — empty placeholder, selected value(s), or loading skeleton. Not directly typeable.

3

"..." Trigger Button

Right-aligned button inside the input field that opens the selection modal. Always visible.

4

Clear Button (×)

Appears inside the input field only after a selection is made. Clears all selected values in one click.

5

Selection Modal

A modal overlay (width 70%) containing search, a record list or table, pagination, and action buttons (Cancel / Select).

6

Search Input (Modal)

Allows users to filter the record list by name, email, or other relevant attributes.

7

Record List / Table (Modal)

Displays available records with multiple columns of context (e.g. Name + Email). Single select uses a clickable row; multi-select uses checkboxes.

8

Pagination Footer (Modal)

Shows current range and total count (e.g. "1–35 of 35"). Includes page number navigation for large datasets.

9

Modal Action Buttons

Cancel dismisses the modal without changes. Select confirms the selection and updates the input field.

Behaviour

Common Variants

Visual Guidelines

Input Field Specs

Selected State — Chip vs Plain Text

Loading State Specs

Selection Modal Specs

Known Issues

Issue

Description

Chip UI on Single Select

Current implementation wraps the selected value in a chip/tag component for single select fields. This is unnecessary — plain text is sufficient and cleaner. Chip should be removed for single-select inputs.

Implementation & Developer Notes:
Render the input field as a read-only text box with a right-aligned "..." trigger button. Do not allow direct keyboard input into the field. Once a selection is made, display plain text for single-select (no chip wrapper) and chip components for multi-select. Always render a "×" clear button to the right of the selected value(s), positioned to the left of the "..." trigger. Show skeleton placeholder blocks inside the field during data fetch — never a spinner. The selection modal must be implemented as a side panel overlay; it should not navigate away from the current page.

Sub Pattern 1: Single Select with Modal

Component

Spec

Input Display

Plain text for the selected value — no chip/tag wrapper.

Clear Button

"×" appears right-aligned inside the field after selection. Clears the single selected value.

Modal Width

Medium

Modal Title

"Select [Object Name]" (e.g. "Select User")

Modal Selection

Single row click to select. No checkboxes. Select button is disabled until a row is chosen.

Modal Table

Multi-column table (e.g. Name + Email). Name column sortable. Rows are clickable.

Pagination

Simple count display: "1–35 of 35". No page number navigation needed for smaller datasets.

Implementation & Developer Notes:
Configure the input field to accept only a single value. On selection, render the value as plain text inside the field — do not wrap it in a chip or tag component. Show the "×" clear button immediately after a value is set. In the modal, implement single-row selection behaviour (radio-like): clicking a row highlights it and enables the Select button. Disable checkboxes. Close the modal and populate the field on Select; dismiss without change on Cancel.

Empty state: Single select input

image-20260930-122819.png


Modal: Single select modal — "Select Product" with search, Name/Product code, and pagination

image-20260930-122703.png

Selected state: Single select input — selected state (plain text, "×" clear button)

image-20260930-122845.png

Loading state: Single-select input — skeleton shimmer placeholders

image-20261006-120408.png


Sub Pattern 2: Multi-Select with Modal

Component

Spec

Input Display

Selected values displayed as chips/tags inside the field — multiple values must be visually distinguishable.

Clear Button

A single global "×" appears right-aligned inside the field to clear all selected values at once.

Modal Width

70%

Modal Title

"Select [Object Name]" (e.g. "Select Tags")

Modal Selection

Checkbox-based multi-row selection. A header checkbox allows select-all. Select button remains active.

Modal Table

Single-column list (e.g. Tag Name) with checkboxes. Header checkbox for bulk select.

Pagination

Numbered page navigation (e.g. "1–50 of 546", pages 1 2 3 4 … 11) for large datasets.

Loading State

2–3 skeleton shimmer blocks shown inside the input field while data is fetched.

Implementation & Developer Notes:
Configure the input field to accept multiple values. Render each selected value as a chip component inside the field. Do not add individual "×" remove icons per chip — use a single global clear button ("×") to the right of all chips. Show skeleton placeholders (2–3 shimmer blocks) inside the field during data loading. In the modal, implement checkbox-based multi-selection with a header select-all checkbox. The Select button should remain active (not disabled). On Select, update the field with all checked values as chips; on Cancel, dismiss without changes. Use numbered pagination for datasets exceeding 50 records.


Empty state: Multi-select input

image-20260928-130647.png


Modal: Multi-select modal — "Select Tags" with search, checkbox list, select-all header, and numbered pagination

image-20260930-122418.png

Selected state: Multi-select input — selected state (chips, global "×" clear button)

image-20260928-130713.png

Loading state: Multi-select input — skeleton shimmer placeholders

image-20261006-120953.png