botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Question] How can I read the value from complex adaptive card?

Open JeevaJose opened this issue 9 years ago • 3 comments

I am able to read the values if the body have only input text. This case have columnset and column. When I filled all the input data and click on submit button from emulator I am not getting any value.

Platform : .Net C#

Below I have shared the json card details. Could you please help me to fix this issue.

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "0.5",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "size": 2,
          "items": [
            {
              "type": "TextBlock",
              "text": "Tell us about yourself...",
              "weight": "bolder",
              "size": "large"
            },
            {
              "type": "TextBlock",
              "text": "We just need a few more details to get you booked for the trip of a lifetime!",
              "isSubtle": true,
              "wrap": true
            },
            {
              "type": "TextBlock",
              "text": "Don't worry, we'll never share or sell your information.",
              "isSubtle": true,
              "wrap": true,
              "size": "small"
            },
            {
              "type": "TextBlock",
              "text": "Your name",
              "wrap": true
            },
            {
              "type": "Input.Text",
              "id": "myName",
              "placeholder": "Last, First"
            },
            {
              "type": "TextBlock",
              "text": "Your email",
              "wrap": true
            },
            {
              "type": "Input.Text",
              "id": "myEmail",
              "placeholder": "[email protected]",
              "style": "email"
            },
            {
              "type": "TextBlock",
              "text": "Phone Number"
            },
            {
              "type": "Input.Text",
              "id": "myTel",
              "placeholder": "xxx.xxx.xxxx",
              "style": "tel"
            }
          ]
        },
        {
          "type": "Column",
          "size": 1,
          "items": [
            {
              "type": "Image",
              "url": "https://upload.wikimedia.org/wikipedia/commons/b/b2/Diver_Silhouette%2C_Great_Barrier_Reef.jpg",
              "size": "auto"
            }
          ]
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Submit"
    }
  ]
}

JeevaJose avatar Jun 02 '17 08:06 JeevaJose

Have any update?

JeevaJose avatar Jun 04 '17 07:06 JeevaJose

@JeevaJose can you please post the code you are using to access the JSON?

The Bot Framework support team prefers to answer questions like this on Stack Overflow. If the issue gets closed here on GitHub, it will not be available and indexed for external search engines so others can easily find it. We are happy to answer your question here, but would you please also post your question to Stack Overflow. Thanks!

JasonSowers avatar Jun 05 '17 16:06 JasonSowers

I have posted this issue on stackoverflow

https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card

JeevaJose avatar Jun 06 '17 11:06 JeevaJose