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
Comment #2
g089h515r806 CreditAttribution: g089h515r806 commenteda simple version added.
Comment #3
chrotto CreditAttribution: chrotto commentedTried 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?
Comment #4
dremy CreditAttribution: dremy commented+1
Comment #5
psiegel CreditAttribution: psiegel commentedI 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?
Comment #6
DarkstarTom CreditAttribution: DarkstarTom commentedI 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?
Comment #7
Deno CreditAttribution: Deno as a volunteer commentedUnique 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.
Comment #8
g089h515r806 CreditAttribution: g089h515r806 commentedlatest code of unique validator works.