Save and close the page after clicking Yes in the confirmation box
Hello Community,
I have a requirement to save and close the page on click of Yes in the confirmation pop up message in Freedom UI
When I tried to do it after choosing Yes, using Handler chain, it doesn't accept await.
and so I tried it without using await.
Now, it closes the page without saving the page and so it shows unsaved changes popup message.
The code written is attached below
Any suggestions is really helpful.
Thanks
Gargeyi
Like
Try using await on the calls to handlerChain.process/
For example:
await handlerChain.process ({...
Ryan
Hello Ryan,
When I tried to add await with in the result block, it throws syntax error.
Do we have any alternative way to do it.
Thanks
Gargeyi
GargeyiGnanasekhar,
What specifically is the error you’re getting?
Ryan
Ryan Farley,
Attached the screenshot where the error occurs.
I wanted to save and close the page after user click on Yes button from the confirmation box.
Thanks