This topic is locked

Check If Specific Record Exists With Javascript

4/20/2013 9:47:52 AM
PHPRunner General questions
J
joiresende author

Hello,

I need to check before saving if certain data exists in the database via a javascript event.

Thank you for your help.

João

C
cgphp 4/24/2013

You need to perform an AJAX call in the beforeSave method:
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){

//Place your AJAX all here

});