Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Exit script if cancel is hit.

Avatar

Former Community Member
I have a form with several buttons, each of which takes the user through a series of prompts using the app.Response function. Is there a way to exit the function and not run any further code (other than a large series of if-loops) if the user presses the cancel button for one of the prompts?



Thank you



Paul Washburn.
1 Reply

Avatar

Former Community Member
Managed to find it, in case anyone else needs to know the command was



quit();