Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

unique_field_ajax

1,378 sites Security covered
View on drupal.org

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.

Activity

Total releases
1
First release
Jul 2025
Latest release
9 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.2.3 Stable Jul 8, 2025