Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with dynamic typeahead search in adaptive cards #8861

Open
agarwal-priyanka opened this issue Mar 21, 2024 · 0 comments
Open

Issue with dynamic typeahead search in adaptive cards #8861

agarwal-priyanka opened this issue Mar 21, 2024 · 0 comments

Comments

@agarwal-priyanka
Copy link

Target Application

Microsoft Teams

Application Operating System

Windows

Schema Version

1.5

Problem Description

There is an issue with dynamic typeahead search in adaptive cards for Teams. We get validation errors when we search any data from the dataset.

Example :

ptry1

In this example, the validation property I have used is isRequired. So, when I set this property to true, select data from dropdown and click on Submit it gives me validation error.

Expected Outcome

It should not give validation error when data is selected from dropdown. Below is the expected outcome:

ptry2

Actual Outcome

It is giving validation error when data is selected from dropdown.

ptry1

Card JSON

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.3",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "width": "stretch",
          "items": [
            {
              "choices": [],
              "choices.data": {
                "type": "Data.Query",
                "dataset": "city",
                "top": 20
              },
              "errorMessage": "City is required",
              "id": "city",
              "isMultiSelect": false,
              "isRequired": true,
              "label": "City",
              "style": "filtered",
              "type": "Input.ChoiceSet",
              "value": ""
            }
          ],
          "type": "Column"
        }
      ]
    },
    {
      "type": "ActionSet",
      "actions": [
        {
          "type": "Action.Submit",
          "title": "Submit"
        }
      ]
    }
  ]
}

Repro Steps

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant