Click here to Skip to main content
15,885,881 members

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.