This topic is locked

Add/Edit Message in a Popup?

7/26/2022 6:11:59 PM
PHPRunner General questions
J
jaffleck author

Is there a way that I could display the Add/Edit message in a popup? Also is there a way I could display it only if the message indicates an error occured?

Sergey Kornilov admin 7/26/2022

The best option to do that in Javascript OnLoad event. You can use either a simple alert or SweetAlert.

The key is to prevent this popup showing on the initial load of the Add/Edit pages. I guess you can set a session variable in AfterAdd/AfterEdit events, pass this variable to Javascript and only display the popup after the record was added or edited.

J
jaffleck author 7/27/2022

Thanks.

How do I access the message text?

Sergey Kornilov admin 7/27/2022

What message do you mean?