[Question] How can I read the value from complex adaptive card?
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"
}
]
}
Have any update?
@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!
I have posted this issue on stackoverflow
https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card