Client API ReferenceEventsonRecordSaveonRecordSave console.log("saving a record"); if(a != b){ return false; //cancel the save operation }