DHTMLX Docs & Samples Explorer

onDirty Event

Event occurs before form reloading with different data, when data in existing form was changed but not saved

Parameters for inputs:

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

Event is blockable. Returning false will prevent form reloading.