Comparing Titles
Posted: Wed Jan 08, 2014 3:14 pm
Is it possible and/or worthwhile to have a field (entity/record name) in an HTML tab/interface do validation to make sure that when one enters a new entity/record name, he/she does not name an entity/record that already exists in the database? In other words, when one enters the name for a new entity, the system would recognize that such an entity/record already exists and pop up a message to the user saying so (therefore either that entity exists or the new entity needs a different name)?
With validation for an email address or website to make sure it is the correct form is quite simple and does not require many iterations (just a matter of making sure the input does not equal an accepted email or URL format). However, in the case of making sure that a particular name does not match any of the existing names in the database seems like it would take a long time and overload the system if I understand correctly (check each existing entity to make sure that the input does not equal it).
Is there a better way to accomplish this? Suggestions?
Certainly, all users are instructed to check first in the database to make sure that the desire record does not already exist. However, sometimes people do not do this and it would be nice to have a safeguard against double entries if possible.
With validation for an email address or website to make sure it is the correct form is quite simple and does not require many iterations (just a matter of making sure the input does not equal an accepted email or URL format). However, in the case of making sure that a particular name does not match any of the existing names in the database seems like it would take a long time and overload the system if I understand correctly (check each existing entity to make sure that the input does not equal it).
Is there a better way to accomplish this? Suggestions?
Certainly, all users are instructed to check first in the database to make sure that the desire record does not already exist. However, sometimes people do not do this and it would be nice to have a safeguard against double entries if possible.