Is it possible to restrict, creation of duplicate list item in the Sharepoint 2007, using Javascript in content editor webpart to validate when an list item is added?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
You can use the list web service via JavaScript/jQuery and validate if an item exists. I would prefer doing this on an event recevier (lot easier) but I guess you don't have a access to deploy code ? here are some samples using JS http://darrenjohnstone.net/2007/05/28/querying-a-sharepoint-list-with-JavaScript/ and here using jQuery http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx |
|||
|
|
|
It wouldn't be trivial, but you can use javascript to carry out a web service call to lookup all items with the same title. Have a look at the SPServices JavaScript library on CodePlex. |
|||
|
|