jsonbotschatbotbot-framework-composer

Bot Framework Composer - Adaptive Card - Button to start another dialog


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"
                
            }
            ]
    }

Solution

  • 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