I'm very happy to see the recent progress on the D8 version, especially that a couple more validation rules were just added to it yesterday.

The last thing I need on my new D8 website before granting content creation permission to other users is to be able to make sure an important/required field is unique. As best as I can tell, it is between this module (which I would prefer) and the Unique Field module. But it seems that Unique Field has been abandoned, since the maintainers haven't responded to support requests for months, including new a D8 port someone as developed and is trying to submit to them.

Is the "Unique" rule for this module planned to be ported to the D8 version soon?

Comments

bca-wm created an issue. See original summary.

g089h515r806’s picture

a simple version added.

chrotto’s picture

Tried to use this to set a unique validation role on a User field but failed to do so.
I got The website encountered an unexpected error. Please try again later.
Is this not yet supported?

dremy’s picture

+1

psiegel’s picture

I tried this module as well, and could no make it work even with a number field. And also got the "The website encountered an unexpected error. Please try again later" with plenty of errors in the apache log.

Was anyone able to get a simple validation of a field work?

DarkstarTom’s picture

I am using the latest Drupal 8 and I am trying to get this module to make unique fields in a users profile (created with the Profile module). When I set up the unique validation for the field and try to enter a duplicate value the form is submitted without an error appearing and the duplicate is allowed. However in the error log I see a message saying:

Theme hook field_validation_rule_summary not found.

Is this a bug in the module or am I doing something wrong?

Deno’s picture

Unique rule seems to work for text fields, not for references. Moreover, I can not define more than one "unique" rule for the same entity. That is, if I wish to assure that two fields are unique, I'm apparently out of luck.

g089h515r806’s picture

Status: Active » Closed (works as designed)

latest code of unique validator works.