I have popup add and edit forms. I am trying after a user has saved on edit or add load a toastr notification. It loads before the event has happened. It currently loads the toast before the event has happened, it must show the toast only after the save has happened, any help please?.
On before display
$pageObject->AddCSSFile( "styles/custom/toastr.min.css" );
$pageObject->AddJSFile( "libs/js/toastr.min.js" );
After Record updated
$pageObject->stopPRG = true;
$pageObject->setProxyValue("saved", true);
OnLoad event
if (proxy['saved']){
toastr.info('User account has been updated - edit field', 'User Account', {
"closeButton": false,
"debug": false,
"newestOnTop": true,
"progressBar": false,
"positionClass": "toast-bottom-right",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "10000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
});
};