Promptary
Frontend ยท Form

Form developer concepts

Learn 62 Form concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.

Text & formatted input

Text input

A single-line field for short free-form text.

Also known as
Text field, Single-line input
AI prompt
Create an accessible project name text input with a visible label, helpful placeholder, character limit, helper text, and clear focus, error, disabled, and read-only states.

Textarea

A multi-line field for longer free-form content.

Also known as
Multi-line input, Comment box
AI prompt
Create an accessible project summary textarea with a visible label, helper text, a 240-character limit, a live character counter, and validation states.

Email input

Collects and validates an email address.

Also known as
Email field, Email address input
AI prompt
Create an accessible email input with autocomplete, mobile-friendly keyboard behavior, inline validation, and an example showing the expected address format.

Password input

Masks sensitive text while a person enters a password.

Also known as
Password field, Secret input
AI prompt
Create an accessible password input with show and hide controls, password-manager support, strength guidance, Caps Lock feedback, and clear requirements.

Search input

Accepts a query used to find or filter content.

Also known as
Search field, Filter input
AI prompt
Create an accessible search input with a descriptive label, search icon, clear button, keyboard shortcut hint, debounced results, and empty and loading states.

Telephone input

Collects a phone number with an appropriate mobile keyboard.

Also known as
Phone input, Tel field
AI prompt
Create an accessible international telephone input with country code selection, an example format, mobile tel keyboard support, and forgiving validation.

URL input

Collects and validates a web address.

Also known as
Website field, Link input
AI prompt
Create an accessible website URL input with a clear example, URL keyboard support on mobile, protocol handling, and an inline invalid-address message.

OTP / PIN input

Collects a short one-time code or personal identification number.

Also known as
Verification code, PIN field, Code input
AI prompt
Create an accessible six-digit one-time-code input that supports paste, SMS autofill, numeric keyboards, backspace navigation, expiration, resend, and a single understandable screen-reader label.

Masked input

Guides text into a required visual format such as an ID or card number.

Also known as
Input mask, Formatted field
AI prompt
Create an accessible masked membership-number input that accepts pasted text, does not trap the cursor, explains the required format, and validates the unformatted value.

Currency input

Collects a monetary amount with currency context and formatting.

Also known as
Money input, Amount field
AI prompt
Create an accessible currency input with a visible currency prefix, locale-aware grouping and decimals, paste support, min and max validation, and an unformatted numeric value for submission.

Tag input

Turns entered values into removable chips or tokens.

Also known as
Chips input, Token field
AI prompt
Create an accessible tag input where Enter and comma add tags, Backspace removes the last tag, duplicates are prevented, suggestions are available, and every chip has a labeled remove action.

Rich text editor

Edits formatted content using a toolbar and document area.

Also known as
WYSIWYG editor, Formatted text editor
AI prompt
Create an accessible rich text editor with semantic headings and lists, keyboard shortcuts, labeled toolbar controls, paste cleanup, link editing, word count, and a plain-text fallback.

Choice controls

Select / Dropdown field

Lets people choose one option from a compact list.

Also known as
Select input, Dropdown
AI prompt
Create an accessible country select with a visible label, optional placeholder, sensible default, validation message, and native keyboard behavior.

Combobox

A searchable popup list that accepts typing and selection.

Also known as
Autocomplete, Searchable select
AI prompt
Create an accessible customer combobox following the ARIA combobox pattern, with keyboard navigation, asynchronous search, loading and empty states, highlighted matches, and a clear button.

Datalist suggestions

Suggests predefined values while still allowing free-form text.

Also known as
Input suggestions, Editable suggestions
AI prompt
Create a native datalist-backed browser input that suggests common values, still accepts custom text, has a visible label, and validates the final value when needed.

Multi-select listbox

Lets people select more than one option from a list.

Also known as
Multiple select, Multi-select
AI prompt
Create an accessible multi-select listbox with clear selected states, keyboard selection, search for long lists, select-all and clear actions, and a concise selection summary.

Checkbox

Turns one independent option on or off.

Also known as
Tick box, Boolean checkbox
AI prompt
Create an accessible checkbox with a large clickable label, clear checked, unchecked, disabled, and focus states, plus helper text when the consequence needs explanation.

Checkbox group

Allows any number of choices from a related set.

Also known as
Multi-choice group, Checkbox list
AI prompt
Create an accessible checkbox group inside a fieldset with a legend, optional selection limits, group-level validation, and a clear layout for long labels.

Tri-state checkbox

Represents checked, unchecked, and partially selected states.

Also known as
Indeterminate checkbox, Mixed checkbox
AI prompt
Create an accessible parent checkbox that reflects checked, unchecked, and indeterminate child selections, announces its mixed state, and supports keyboard toggling.

Radio group

Lets people choose exactly one option from a small visible set.

Also known as
Radio buttons, Single-choice group
AI prompt
Create an accessible radio group inside a fieldset with a legend, one clear default when appropriate, arrow-key navigation, and group-level validation.

Toggle switch

Immediately turns a setting on or off.

Also known as
Switch, Boolean toggle
AI prompt
Create an accessible toggle switch for email notifications with a persistent label, immediate on and off feedback, keyboard support, and visible focus styling.

Segmented control

Shows a small set of mutually exclusive choices in one compact row.

Also known as
Segmented buttons, View switcher
AI prompt
Create an accessible segmented control for List, Grid, and Board views using the correct radio or tab semantics, arrow-key support, a clear selected state, and responsive wrapping.

Transfer list

Moves items between available and selected collections.

Also known as
Dual listbox, Pick list
AI prompt
Create an accessible transfer list with searchable available and selected panels, item counts, move and reorder actions, keyboard support, and a mobile-friendly alternative.

Multi-select dropdown

Selects several options from a dropdown and shows them as removable values.

Also known as
Multiple dropdown, Checkbox dropdown, Tag select
AI prompt
Create an accessible multi-select dropdown for project members with search, checkbox options, selected-value chips, select-all and clear actions, keyboard navigation, a selection count, and a responsive mobile presentation.

Autocomplete

Suggests matching values while people type, while optionally allowing new text.

Also known as
Typeahead, Autosuggest, Predictive input
AI prompt
Create an accessible city autocomplete with debounced suggestions, highlighted matches, keyboard navigation, loading and no-result states, free-text rules, recent searches, and clear selection feedback.

Cascader

Selects a path through related levels of hierarchical options.

Also known as
Cascading dropdown, Hierarchical picker, Drill-down select
AI prompt
Create an accessible location cascader for country, state, and city with column-by-column keyboard navigation, lazy-loaded children, a visible selected path, search, loading and empty states, and a mobile drill-down view.

Tree select

Selects one or more values from expandable hierarchical branches.

Also known as
Tree dropdown, Hierarchical multi-select, Tree picker
AI prompt
Create an accessible tree select for team permissions with expandable branches, parent and child checkboxes, indeterminate states, search, keyboard tree navigation, selected chips, and a concise selection summary.

Date & time

Date picker

Lets people enter or choose one calendar date.

Also known as
Calendar picker, Date selector
AI prompt
Create an accessible date picker with a text-entry fallback, locale-aware format hint, month navigation, full keyboard controls, disabled dates, and a clear selected date.

Date range picker

Selects related start and end dates.

Also known as
Range calendar, Start and end date
AI prompt
Create an accessible date range picker with separate labeled start and end fields, keyboard-friendly calendars, minimum-stay rules, unavailable dates, and a readable range summary.

Time picker

Collects a time of day.

Also known as
Time input, Clock picker
AI prompt
Create an accessible time picker with keyboard entry, 12-hour or 24-hour localization, minute intervals, min and max times, and an explicit time-zone note.

Date and time picker

Collects a local date and time as one logical value.

Also known as
Datetime input, Schedule picker
AI prompt
Create an accessible date and time picker using clearly labeled date and time fields, locale-aware formatting, time-zone context, validation for past values, and a readable confirmation.

Month picker

Collects a month and year without a specific day.

Also known as
Month input, Billing month selector
AI prompt
Create an accessible month and year picker with a native input where supported, a labeled fallback, min and max months, and locale-aware display.

Week picker

Collects a numbered week within a year.

Also known as
Week input, Calendar week selector
AI prompt
Create an accessible week picker that shows the exact date range represented by each week, handles locale-specific week numbering, validates limits, and provides a browser fallback.

Time-zone selector

Chooses an IANA time zone for scheduling and display.

Also known as
Timezone dropdown, Zone picker
AI prompt
Create an accessible searchable time-zone selector that defaults from the browser, shows city names and current UTC offsets, accounts for daylight-saving changes, and stores IANA zone identifiers.

Numbers & ranges

Number input

Collects a numeric value with optional limits and increments.

Also known as
Numeric field, Number field
AI prompt
Create an accessible number input for team size with a visible label, min, max, and step rules, numeric mobile keyboard support, and friendly out-of-range validation.

Spinbutton / Quantity stepper

Adjusts a number with increment and decrement controls.

Also known as
Number stepper, Quantity selector
AI prompt
Create an accessible quantity spinbutton with labeled minus and plus buttons, editable numeric text, min and max limits, keyboard controls, and an announced current value.

Range slider

Chooses one approximate numeric value along a continuous track.

Also known as
Slider, Range input
AI prompt
Create an accessible budget slider with keyboard controls, min, max, and step values, a visible current value, formatted units, useful tick marks, and a numeric input alternative.

Multi-thumb range slider

Selects a minimum and maximum value on one track.

Also known as
Dual range slider, Price range slider
AI prompt
Create an accessible two-thumb price range slider with individual labels and keyboard control for each thumb, non-crossing constraints, live formatted values, and paired numeric fields.

Percentage input

Collects a proportional value with an explicit percent unit.

Also known as
Percent field, Rate input
AI prompt
Create an accessible percentage input with a visible percent suffix, decimal support, a documented stored-value convention, min and max validation, and locale-aware formatting.

Rating input

Collects a score, commonly displayed as stars or a numbered scale.

Also known as
Star rating, Score selector
AI prompt
Create an accessible five-star rating input using radio semantics, arrow-key navigation, hover and selected states, descriptive labels for every score, and a clear no-rating option.

Files & rich input

File upload

Lets people select one or more files from their device.

Also known as
File picker, File input
AI prompt
Create an accessible file upload with a native file input, accepted file types, size and quantity limits, selected file names, upload progress, retry, remove, and clear errors.

Drag-and-drop upload

Adds a drop target while retaining a normal file picker.

Also known as
Dropzone, Drag and drop file input
AI prompt
Create an accessible drag-and-drop upload area with an equally prominent keyboard-operated file picker, drag-over feedback, type and size validation, upload progress, retry, and remove actions.

Image upload

Uploads images and shows previews or editing controls.

Also known as
Photo uploader, Avatar upload
AI prompt
Create an accessible image upload with camera and file options on mobile, preview, crop and rotate tools, alt-text input where relevant, file validation, progress, replace, and remove actions.

Color picker

Selects a color visually or by a precise color value.

Also known as
Colour input, Swatch picker
AI prompt
Create an accessible brand color picker with a native color input, editable hex value, preset swatches, live preview, clear focus states, and contrast guidance.

Signature pad

Captures a drawn or typed signature.

Also known as
Signature input, Drawing pad
AI prompt
Create an accessible signature field with draw, type, and upload options, keyboard-operable clear and undo actions, touch and pointer support, a preview, consent text, and server-side validation.

Structure, actions & feedback

Button

Triggers an action without submitting or navigating by default.

Also known as
Action button, Push button
AI prompt
Create an accessible action button with concise verb-first text, the correct button type, visible hover, focus, pressed, disabled, and loading states, and duplicate-action protection.

Submit button

Validates and sends the current form.

Also known as
Primary form action, Save button
AI prompt
Create an accessible form submit button with specific action text, native submit behavior, a loading state, duplicate-submit protection, validation focus management, and success and failure feedback.

Reset button (use cautiously)

Restores fields to initial values and can easily cause accidental data loss.

Also known as
Clear form, Form reset
AI prompt
If a reset action is truly necessary, create a low-emphasis accessible Clear form button that explains its scope, asks for confirmation when data would be lost, and provides an undo path where possible.

Form label

Names a control and creates its accessible relationship.

Also known as
Input label, Field label
AI prompt
Create a persistent visible label correctly associated with its form control, with concise wording, a generous click target, and required or optional status expressed in text.

Helper text

Explains format, constraints, or consequences before input.

Also known as
Hint text, Supporting text
AI prompt
Create concise helper text below a field that explains only the information needed to answer, is programmatically associated with the control, and remains present when an error appears.

Required / optional indicator

Communicates whether a field must be completed.

Also known as
Required marker, Optional label
AI prompt
Create a consistent required and optional field convention using visible words, not color or an unexplained asterisk alone, and connect required state to native validation and accessible properties.

Fieldset and legend

Groups related controls under one accessible question or heading.

Also known as
Form group, Grouped fields
AI prompt
Group related radio buttons, checkboxes, or address fields in a semantic fieldset with a clear legend, shared helper text, and group-level error handling.

Input group / Prefix and suffix

Adds contextual units or fixed text before or after an input.

Also known as
Input addon, Affix input
AI prompt
Create an accessible amount input with a currency prefix and monthly suffix, clear visual grouping, one programmatic label, screen-reader-friendly unit text, and no loss of meaning at zoom.

Character counter

Shows how much text has been entered or remains available.

Also known as
Word counter, Text limit counter
AI prompt
Create an accessible character counter for a textarea that shows the limit from the start, updates visually, announces only meaningful thresholds, handles pasted text, and explains over-limit validation.

Inline validation message

Places a specific field error or success message next to its control.

Also known as
Field error, Validation feedback
AI prompt
Create accessible inline validation that runs at an appropriate time, identifies the problem and correction in plain language, uses more than color, associates the message with the field, and preserves the entered value.

Error summary

Summarizes form errors and links people to each invalid field.

Also known as
Validation summary, Error list
AI prompt
Create an accessible error summary at the top of a submitted form, move focus to its heading, list specific linked errors in field order, preserve all input, and keep matching inline messages.

Form actions

Groups primary, secondary, and destructive actions at the end of a form.

Also known as
Button group, Action row
AI prompt
Create a responsive form action row with one clear primary submit button, a lower-emphasis cancel action, safe spacing from destructive actions, logical keyboard order, and stacked mobile behavior.

Multi-step form / Form wizard

Splits a long process into a sequence of manageable steps.

Also known as
Form wizard, Stepper form
AI prompt
Create an accessible multi-step application form with named steps, current-step and progress text, back and continue controls, per-step validation, saved progress, review before submit, and safe browser history behavior.

Conditional field

Appears only when an earlier answer makes it relevant.

Also known as
Progressive disclosure field, Dependent field
AI prompt
Create an accessible conditional field revealed by a preceding choice, announce the newly available content, move no unexpected focus, clear or preserve hidden values intentionally, and validate only relevant controls.

Read-only vs disabled field

Shows a value that cannot be edited, with different focus and submission behavior.

Also known as
Locked field, Non-editable input
AI prompt
Demonstrate accessible read-only and disabled fields, explain when to use each, retain sufficient contrast, communicate why editing is unavailable, and account for whether the value must be submitted.

Calculated output

Displays a result calculated from one or more form values.

Also known as
Output element, Calculated field
AI prompt
Create an accessible calculated total that updates from quantity and price inputs, uses the semantic output element, names the result, formats currency correctly, and announces changes without excessive interruption.

Hidden input

Submits non-visible form data that people do not edit directly.

Also known as
Hidden field, Metadata input
AI prompt
Use a hidden input only for non-secret form metadata such as a record identifier or CSRF token, validate it on the server, never trust it for authorization, and do not use it to hide sensitive data.