Skip to main content
Bounty Ended with tostinni's answer chosen by EKK
Bounty Started worth 50 reputation by EKK

How todo I create a field that acceptaccepts only unique values?

I am using the Field Collection module, because I have some complicated relation between the fields, and I have tried to integrate it with the Unique field module, however without success, because Unique field module is not supported by the Field Collection module.

My question: Is there a more "simple"simpler method to check if the value is unique, and the to display validation error, if the value is not unique?

Unfortunately, Drupal 7 has not this feature by default, so there must be a method to do this.

How to create field that accept only unique values?

I am using Field Collection module, because I have some complicated relation between the fields, and I have tried to integrate it with Unique field module, however without success, because Unique field module is not supported by Field Collection module.

My question: Is there a more "simple" method to check if the value is unique, and the to display validation error, if the value is not unique?

Unfortunately, Drupal 7 has not this feature by default, so there must be a method to do this.

How do I create a field that accepts only unique values?

I am using the Field Collection module because I have some complicated relation between the fields, and I have tried to integrate it with the Unique field module, without success, because Unique field module is not supported by the Field Collection module.

Is there a simpler method to check if the value is unique, and the to display validation error, if the value is not unique?

Unfortunately, Drupal 7 has not this feature by default, so there must be a method to do this.

Tweeted twitter.com/#!/StackDrupal/status/107477784804343810
Source Link
EKK
  • 4.4k
  • 11
  • 48
  • 55

How to create field that accept only unique values?

I am using Field Collection module, because I have some complicated relation between the fields, and I have tried to integrate it with Unique field module, however without success, because Unique field module is not supported by Field Collection module.

My question: Is there a more "simple" method to check if the value is unique, and the to display validation error, if the value is not unique?

Unfortunately, Drupal 7 has not this feature by default, so there must be a method to do this.