Hope I have used this module in the right way:
I have a content type "Actor" containing a multiple value field (illimited) "field_movies" which have the "entity reference" type.

I have added a "Unique" rule validation for this content type:

Field Validation Rule title: "Movies are unique"
Name of the Field: "field_movies"
Column of field: target_id
Scope of Unique: Entity
Error message: You can't add twice the same movie

Unfortunately, I can encode twice the same movie when editing an actor form.

Comments

DuneBL created an issue. See original summary.

Deno’s picture

Same here. Unique does not work with taxonomy references. It does work with normal text fields.

nikunjkotecha’s picture

For some reason it worked for me after creating the rule and then clearing Drupal cache.

g089h515r806’s picture

You need clear the cache.

g089h515r806’s picture

Status: Active » Closed (cannot reproduce)