Validation for dropdown for moss 2007 list
i have a list in which i created a column as choice i entered these values in it- Select A B C by default select is choose....i want at the time of new item if someone does not choose A or B or C i mean default value is thr then data should not save ..........which validation control need to put here...am not getting plz help :( -------------------------------------------------------------------------------- sudhanshu sharma
September 6th, 2011 7:13am

If you have a search for JQuery Validation, you'll come up with a ton of results (bit like this one http://sympmarc.com/2009/05/13/javascript-validation-on-editform-aspx-part-one/). You can edit the form with Designer and apply the JQuery client side. What have you tried so far?Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2011 7:19am

Hi, In addition to steven reply, you can also create custom event receiver to validate your column. You can use ItemAdding and ItemUpdating events for same. Here is the reference link for event handler; http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html http://madsharepoint.blogspot.com/2009/07/basic-event-handling-in-sharepoint.html Hope it could helpCheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
September 6th, 2011 8:21am

Hi , Can we not write a simple java script when if selected value ==select then not save else save sudhanshu sharma
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2011 8:23am

Obviously we can try with script. I have posted a simple JS for list pages in below thread. you can modify this script: http://social.msdn.microsoft.com/Forums/en/sharepointcustomization/thread/94af7d77-b2b6-4197-87c9-bf527bf46551 Here is one more thread for your reference: http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/0ad7fc3c-97a1-464e-ae89-c3133462dda8/ Let us know if it worksCheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
September 6th, 2011 8:38am

Hi Hemendra, i did this through java script but actually i want to do this by readymade ASP.Net validation control and i didnt get for drop down which validator should i choose as best of my memory(in asp.net) if we do validation for drop down need to do some select change event and so......... But once again for time being ...java script will serve my purpose:):) thanks :)sudhanshu sharma
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2011 8:56am

>which validator should i choose as best of my memory(in asp.net) You can choose custom validator for dropdown, where you can set up the event and properties (get and set). There are lots of article available for validation. Here is some reference links for you http://www.netomatix.com/development/DropDownCustomValidator.aspx http://yasserzaid.wordpress.com/2009/04/06/validate-dropdownlist-using-custom-validator/ http://forums.asp.net/t/1065529.aspx Hope it could helpCheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
September 7th, 2011 1:05am

HI Steven, May i know ur contact id if u dont mind(: sudhanshu sharma Do good and cast it into river :)
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 9:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics