[SOLVED] AfterSave event in custom add |
11/11/2024 5:18:27 PM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I have a custom add for an add page. In the custom add I either return true to add the actual record, or I update a record and return false so it doesn't try adding the record. I have this code in the JS Onload event. this.on('afterSave', function(formObj, fieldControlsArr, pageObj){ It doesn't work, which probably makes sense since I'm not adding a record the normal way. What I want is instead of the Record was Added, Back to list, I would like the Check In/Out was completed message to pop up in both cases. Thanks |
|
A
|
asawyer13 authorDevClub member 11/13/2024 |
I ended up using this code instead. Not a popup but works just fine. $pageObject->setMessageType(MESSAGE_INFO); |
C
|
cristi 11/13/2024 |
Maybe something like this could help: https://www.youtube.com/watch?v=PVnVxtGiVJ0 |