Skip to main content
Solved

Issue with multiple buttons in interactive forms.

  • Jul 23, 2024 9:38 AM UTC
  • 2 replies
  • 233 views

  • Ground Control | Tier 1

 

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.

 

 

Best answer by Stefano 5934

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:

View original

2 replies

Forum|alt.badge.img
  • Navigator | Tier 3
  • Aug 31, 2024 12:27 AM UTC

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: 

 


Forum|alt.badge.img
  • Navigator | Tier 3
  • Answer
  • Sep 1, 2024 8:34 PM UTC

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: