Home > front end >  Bot Framework Composer - Adaptive Card - Button to start another dialog
Bot Framework Composer - Adaptive Card - Button to start another dialog

Time:11-12

I have 2 buttons on the adaptive card."submit" button brings me the information I entered on the form.but the "cancel" button does the same.I want the "Cancel" button to redirect to another dialog when pressed. Any idea?

{
        "type": "ActionSet",
        "actions": [
            {
                "type": "Action.Submit",
                "title": "Submit",
                "style": "positive"
            },
            {
                "type": "Action.Submit",
                "title": "Cancel",
                "associatedInputs": "none",
                "id": "cancel",
                "style": "destructive"
                
            }
            ]
    }

CodePudding user response:

here the steps

  1. Assign value in submit and cancel button
  2. based on the value bot received , check the condition invoke the dialog

enter image description here

  • Related