Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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();