Contents

 
Home
PHPRunner 8.0 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{

       pageObj.delDisabledClass( pageObj.saveButton );

      return false;

   }

});

See also

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