There is this content type and it has a field (decimal). I want to apply a uniqueness validation on it (no two nodes with the same "National Code" value). Apparently Field Validation module is the way to go. How do I achieve this ?

2 Answers 2


You can achieve this with Unique Field module. Set the scope to Content Type and you should be good to go.

  • +1 for mentioning a module that is designed solely to cope with that Feb 17, 2012 at 8:40

I did it using the Field Validation module (Unique Value rule). It is pretty simple and gives you many other validation options that might come in handy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.