Forum Discussion

evedgl's avatar
evedgl
Copper Contributor
Mar 04, 2022

Data not passed on teams messaging submit action [bot framework nodejs]

Hi,

Using the nodejs SDK, processing the click of a button in the pallate on the bottom of the screen with the method: handleTeamsMessagingExtensionSubmitAction

 

I have a form input in my adaptive card (below) with an id set, but `data` is empty when the framework receives the submission.

 

How can i get the value of the `number` choice field?

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.4",
    "body": [
        {
            "type": "TextBlock",
            "size": "Large",
            "weight": "Bolder",
            "wrap": true,
            "style": "heading",
            "text": "Enable Inbound SMS"
        },
        {
            "type": "TextBlock",
            "text": "In order to receive replies to your SMS's sent from this chat thread, click the 'Enable Inbound SMS' button below.",
            "wrap": true
        },
        {
            "type": "TextBlock",
            "text": "You can choose a specific virtual number, or to receive messages to all virtual numbers. Note that multiple channels can be configured receive inbounds.",
            "wrap": true
        },
        {
            "id": "number",
            "type": "Input.ChoiceSet",
            "isRequired": true,
            "choices": [
                {
                    "$data": "${numbers}",
                    "title": "${label}",
                    "value": "${number}"
                }
            ],
            "placeholder": "Select Virtual Number"
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Enable Inbound SMS"
        }
    ]
}

 

 

YannickReekmans 

1 Reply

  • evedglAre you able to share your messaging extension manifest so we can see how it is configured?

     

    Just so I'm clear, how are you surfacing the Adaptive Card to the user? As a response to the message extension being invoked using a "command"?

Resources