on('afterSave' event |
6/19/2022 15:15:49 | |
PHPRunner General questions | ||
G
Grdimitris author
I found in ths forum that exist on afterSave event https://www.google.com/search?client=firefox-b-d&q=js+add+on+afterSave+ivent but how to make it work. |
||
![]() |
Sergey Kornilov admin 6/21/2022 |
In PHPRunner you can use AfterAdd or AfterEdit event to execute your code after the record was added or edited. |
|
G
|
Grdimitris author 6/22/2022 |
Yes i know that. |
|
K
|
kohle 6/22/2022 |
Hi, Afteradd is server side, so its php programming and Dialogs are local javascript. What I would do, but maybe others have a better idea : In the after add event you redirect to a new page with some get parameters : On the anypage.php start something like this: <?php Do your Javascript , htmls forms and php (database updates) rgs |
|
![]() |
Sergey Kornilov admin 6/22/2022 |
As @kohle suggests, use redirect in AfterAdd event to the additional page. |
|
G
|
Grdimitris author 6/23/2022 |
Thank you kohle and admin
|
|