Contents

 
Home
PHPRunner 6.2 manual
Prev Page Next Page
 
 

How to ask for confirmation before saving a record

 

To ask a user for confirmation before saving a record use the following code in Javascript OnLoad event for Edit or Add page.

yellowbulbNote: Change the values listed in red to match your specific needs.

this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
  if (confirm('Save record?'))
    return true;
  else
    return false;
});

See also

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)