PreSaveAction() in NewForm.aspx in SharePoint 2013 list

"text/javascript">
 function PreSaveAction(){
     if(condition){
         return true;
     }
     else{
         alert('Condition not satisfied to save item');
         return false
     }
 }
Reff: https://asknoor.wordpress.com/2013/02/21/usage-of-presaveaction-function-in-newform-aspx-and-editform-aspx-in-sharepoint/
Advertisements
PreSaveAction() in NewForm.aspx in SharePoint 2013 list

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s