microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the title of an `Input.ChoiceSet`?

MrDave1999 opened this issue · comments

I have the following adaptive card:

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.3",
  "body": [
    {
      "type": "TextBlock",
      "text": "Dental Services",
      "wrap": true,
      "size": "Medium",
      "weight": "Bolder"
    },
    {
      "type": "Input.ChoiceSet",
      "choices": [
         {
             "title": "brackets",
             "value": "1"
         }
      ],
      "isRequired": true,
      "separator": true,
      "id": "dentalServiceId"
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Send"
    }
  ]
}

I understand that I can get the value that the user selected using the Activity.Value property.

But how could I get the title? Is there any way to obtain it?

Sorry, wrong repository.