![]() |
jadachDevClub member 2/8/2020 |
Use the event after record added and redirect to your new add page |
J
|
Jan K. van Dalen author 2/10/2020 |
Hi Jerry, Use the event after record added and redirect to your new add page |
![]() |
Admin 2/10/2020 |
This is correct that there is only one AfterAdd event that will be executed for both pages. You will have to distinguish between these two pages in your event somehow. There are several ways to do that. For instance, if you have a field that only appears on one of the pages you can check if this field belongs to the $values array and if it does - it will tell you what page you are on. |
J
|
Jan K. van Dalen author 2/10/2020 |
Thanks you ... I guess, a future feature? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=90258&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> This is correct that there is only one AfterAdd event that will be executed for both pages. You will have to distinguish between these two pages in your event somehow. There are several ways to do that. For instance, if you have a field that only appears on one of the pages you can check if this field belongs to the $values array and if it does - it will tell you what page you are on. |
![]() |
Admin 2/10/2020 |
Yes, session variable will work too. |