Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Unique Field AJAX

1,385 sites Security covered Drupal 8–11
View on drupal.org

This module allows site builders to enforce unique values for fields, checking against existing entries within the same bundle and language. It supports custom error messages and can perform checks using Ajax as the user types.

Yet another but more light-weight and optionally more client-side field input check module for site builders to set up fields being checked if the user input is unique by bundle and language supporting customised error messages and optional Ajax form check for every instance separately.

Not all fields are currently supported please see "Field support" section for more details.

Versions

2.x

(recommend) Built upon 8.x-1.x so there should be no problems upgrading all changes and fixes will be here and this version is compatible with D8, D9, D10 & D11.

3.x

(WIP) Refactoring and rebuilding to be ready for Drupal 10/11 using a better system of services and reusable api methods.

8.x-1.x

The original version built for Drupal 8, not recommend for new projects as no improvements will be applied, only any security issues.

Installation and configuration

Install the module like any other module depending on your project setup via admin UI, via Drush or via Composer. The settings for the behaviour can be changed for every field separately in the field settings form.

If correctly installed, enable the "unique" checkbox in the field settings form for the field where you need to make sure the input needs to be unique.

Additionally, if you want it to make it work per language, enable the per_lang checkbox. If you want to check via Ajax from input check on change event, then enable the use ajax checkbox.

Finally there is a text field providing a default error message which can be changed for your needs for any field instance separately.

Field support

At the moment not all field types are supported, please see the list below:

  • string
  • list_string
  • text
  • email
  • entity_reference
  • link
  • integer
  • decimal

Related or similar modules

Unique field (Drupal 7 only)

The Unique field input check works on node entity fields, the user entity fields and the term entity fields. In comparison, the Unique field ajax module works on the field entity itself and implements and Ajax check callback for the input being unique per language.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.2.3 Stable 8–11 Jul 8, 2025