Event occurs before saving the form
Parameters for inputs:
myform.attachEvent("onBeforeSave", function (id, values){ //any custom logic here return true; });
Event is blockable. Returning false will prevent form saving