Skip to content

Tagging Examples

Basic Tagging

Allow users to create new options by typing:

Type a value that does not exist in the list, and an "Add ..." prompt appears. Press Enter to create it.

Tags with Comma Separator

Enable the tags plugin for comma-separated input:

Type react, vue, angular and three tags are created at once.

Tags with Remove Buttons

Add remove buttons for easy tag management:

Tags with Existing Options

Combine tagging with pre-defined suggestions:

Users can select existing skills from the dropdown or type new ones.

Custom Create Prompt Text

Change the text shown when creating a new tag:

Tags with Validation

Restrict new tag values using a regex pattern:

TIP

The "Add" prompt only appears when the typed value matches the pattern. If a user types something invalid, no creation option is shown.

Tags with Custom Separator

Use semicolons instead of commas:

Combine tagging with remote search — users can find existing items or create new ones:

Paste Support

The tags plugin automatically handles paste events. Try pasting comma-separated values:

Paste alpha, beta, gamma, delta and four tags are created instantly.

A complete tagging setup for a form field:

WARNING

When combining tagging with AJAX, newly created tags only exist on the client side. Your backend should handle unknown tag values in the form submission (e.g., by creating new tag records in the database).

MIT Licensed