DHTMLX Docs & Samples Explorer

onBeforeSave Event

Event occurs before saving the form

Parameters for inputs:

  • a form id
  • hash of values
myform.attachEvent("onBeforeSave", function (id, values){
    //any custom logic here
return true;
});

Event is blockable. Returning false will prevent form saving