adaptive cards in bot framework, help

0

i'm trying to put "isRequired" property in JSON code to create attachment with Adaptive Card which is display on Botframework Emulator and it's not working.

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "Create List"
    },
    {
      "type": "Input.Text",
      "placeholder": "Restaurant Name",
      "id": "restaurantInput",
      "isRequired":  true
    },
    {
      "type": "Input.Time",
      "id": "timeInput",
      "isRequired": true
    },
    {
      "type": "ActionSet",
      "actions": [
        {
          "type": "Action.Submit",
          "title": "Create"
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.3"
}

i'm trying to put "isRequired" property in JSON code to create attachment with Adaptive Card which is display on Botframework Emulator and it's not working.

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "Create List"
    },
    {
      "type": "Input.Text",
      "placeholder": "Restaurant Name",
      "id": "restaurantInput",
      "isRequired":  true
    },
    {
      "type": "Input.Time",
      "id": "timeInput",
      "isRequired": true
    },
    {
      "type": "ActionSet",
      "actions": [
        {
          "type": "Action.Submit",
          "title": "Create"
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.3"
}

messagebox after add "isRequired" property (empty)
messagebox without "isRequired" property

0

Did you try putting boolean value into quotes?

0

@Juhas: nie działa nadal

1

Gdzie to renderujesz?

Z szybkiego researchu isRequired zostało dodane w wersji 1.3 adaptive cards, może klient renderujący nie wspiera wersji 1.3?

0

@some_ONE: wszystko jasne, emulator na którym robie nie wspiera tej wersji. dzięki

1 użytkowników online, w tym zalogowanych: 0, gości: 1