For a content type (place), on creation, as the user is entering the name field, I would like to check the previous records for that field. If there is a match, I will present it to the user to prevent duplicate entries. is there way to do this?

2 Answers 2


Check out the Unique field module.

This module performs additional validation when a node is created or updated by a user to require that a node's title, author, language, and CCK fields are unique within a given context.


In D7 you could also implement your "place" as a taxonomy and then use a "auto tagging" widget. As users type in the place name they see similar names that are already entered. That would prevent miss spellings.

  • That would be very nice. Can you briefly describe how I can do that?
    – turzifer
    Jan 4, 2012 at 6:10
  • Ok so i setup a new dictionary named "place name". then I added a new "name" field to the "place" content type and made it an auto tagging widget for taxonomy. It works as you said, thank you. Since I do not want the same data in two different fields, what I need is to get rid of the title field (which does not look possible) and convince pathauto to create urls from the new "place name" field (which also does not look possible). Any suggestions?
    – turzifer
    Jan 4, 2012 at 9:25
  • why don't you use the "title" field as the "place name"?
    – uwe
    Jan 4, 2012 at 17:36
  • I could not figure out a way to make the title field both unique and auto complete. I found a workaround though (in the comments of Jimajamma's answer).
    – turzifer
    Jan 5, 2012 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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