Click here to Skip to main content
12,635,167 members (23,524 online)

Comments by Rupesh Tarwade (Top 2 by date)

Rupesh Tarwade 9-Jun-11 8:04am View
   
SharePoint uses PreSaveItem internally to wireup PreSaveAction function. This code can be found in Form.js in Layouts folder.

function PreSaveItem()
{
ULSopi:;
alert('Inside PreSaveItem');
debugger;
if("function"==typeof PreSaveAction)
return PreSaveAction();
return true
}

So need to write the code in PreSaveAction method.

Thanks for the help/
Rupesh Tarwade 9-Jun-11 0:59am View
   
Hello Mark,

I found that PreSaveItem in javascript fires before the save button function is called. Can this be used to perform the validation?

However, I am unable to get this thing work.

Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid