web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / JavaScript on click of Fini...

JavaScript on click of Finish Button in Survey – SharePoint

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Hi,

We had created a survey and wanted some message to appear when user clicks on finish button.

Through one of my colleague i came to know about this function — PreSaveAction

function PreSaveAction()
{
alert(“Thanks for the participating in the survey!”);
return true;
}

Placing the above function in the newform.aspx using SharePoint designer  did the trick.

We could use the PreSaveAction function for custom validation as well !

http://edinkapic.blogspot.com/2007/10/add-javascript-date-validation-into.html

Bye..


Posted in MOSS, SharePoint Tagged: SharePoint

This was originally posted here.

Comments

*This post is locked for comments