![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/cf6a435c-0c05-4cb9-9453-44b7cb725986.png)
When I click on the first button of the above form, the ‘message box’ is displayed perfectly.
But when I click on the second button, nothing happens. I need to exit the bot when I click on the second button.
Please help to resolve the issue.
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/865cb1c1-23da-47de-bdc4-c189ae7a5e63.png)
When I click on the first button of the above form, the ‘message box’ is displayed perfectly.
But when I click on the second button, nothing happens. I need to exit the bot when I click on the second button.
Please help to resolve the issue.
The issue is that you have 2 separate Trigger loop
actions.
To fix it, place both Trigger loop: Handle
inside the same Trigger loop
.
It should look like this:
Apologies. I just re-evaluated the code and realized that the bot would never reach the Task Bot: Stop
action in the second Trigger loop: Handle
.
Remove the second Trigger loop: Break
, so the code looks like this:
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.