Await in ClientBefore Button javascript code error |
7/8/2022 4:46:09 PM |
PHPRunner General questions | |
![]() Hello, I've added a custom button in Add page and in ClientBefore code block I added this code:
But getting errors in console: What I'm doing wrong? Thanks, |
|
![]() |
Sergey Kornilov admin 7/8/2022 |
Googling the error message points to this article: You cannot simply use await in ClientBefore event. According to the aticle there is much more work than that. |