Module Description
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
3.x (WIP) Refactoring and rebuilding to be ready for Drupal 10 using a better system of services and reusable api methods.

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.

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.

Project Usage
1535
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
DEV
Module Summary
This module aims to solve the issue of checking if user input is unique by bundle and language, with support for custom error messages and optional Ajax form checks for each field instance.
Data Name
unique_field_ajax

OPENAI CHATBOT

OPENAI CHATBOT

12:00:11
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.