To stop the save event in Javascript s use the
following javascript on save event of form.
function Form_onsave(executionObj)
{
var shouldSave
= true;
if (shouldSave)
{
alert("You
can not save!");
executionObj.getEventArgs().preventDefault();
}
}
Note: The pass execution context as
first parameter checkbox is very important to this process. Without it, it
will not work.
Hiç yorum yok:
Yorum Gönder