This topic is locked

Ask before leaving edit form without save

3/17/2012 5:48:41 AM
PHPRunner General questions
B
Bert author

LS,
I need to prevent the user to leave the edit/add form without saving first (using 'Back to list').
I can ask before save using:

this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){

if (confirm('Save record?'))

return true;

else

return false;

});
Where can I find an overview of all actions like beforeSave that can be used?
Thanks, Bert

C
cgphp 3/18/2012
include\runnerJS\RunnerAll.js


Make sure you are not compressing javascript files.

B
Bert author 3/19/2012

Thanks Christian,
I could not find any anything like beforeClose. Does anybody have a solution for this?
Bert


include\runnerJS\RunnerAll.js


Make sure you are not compressing javascript files.

C
CK. 3/19/2012


include\runnerJS\RunnerAll.js


Make sure you are not compressing javascript files.


Dear Sir,
The actual folder for RunnerAll.js is include\common\runnerJS\
Regards,

php.newbie

C
cgphp 3/19/2012

The is correct.

B
Bert author 3/20/2012

Hi all,
Thanks for your replies. However: finding the correct file is not the problem. I cannot find the function to use...
Bert



Dear Sir,
The actual folder for RunnerAll.js is include\common\runnerJS\
Regards,

php.newbie