To ask a user for a confirmation before saving a record, use the following code in the JavaScript OnLoad event for the Edit or Add page.
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
if (confirm('Save record?')){
return true;
}else{
Runner.delDisabledClass ( pageObj.saveButton );
return false;
}
});
See also:
•JavaScript API: RunnerPage object
•Events: Before record updated