Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Exit script if cancel is hit.


Not applicable
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


Not applicable
Managed to find it, in case anyone else needs to know the command was