Adaptive cards typeahead search options are not ordered on iPhone.

green 41 Reputation points
2022-04-11T04:58:12.097+00:00

I’m using teams :

  • 4.6.0 (4.6.77.2022062702/0403 general) on iPhone.

With a sample below, adaptive cards typeahead search options are randomized on iPhone each time they are displayed.
They are ordered on Web.

https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/dynamic-search?tabs=mobile%2Ccsharp#example

{  
  "type": "AdaptiveCard",  
  "body": [  
    {  
      "columns": [  
        {  
          "width": "1",  
          "items": [  
            {  
              "size": null,  
              "url": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fi.imgur.com%2fhdOYxT8.png",  
              "height": "auto",  
              "type": "Image"  
            }  
          ],  
          "type": "Column"  
        },  
        {  
          "width": "2",  
          "items": [  
            {  
              "size": "extraLarge",  
              "text": "Game Purchase",  
              "weight": "bolder",  
              "wrap": true,  
              "type": "TextBlock"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "text": "Please fill out the below form to send a game purchase request.",  
      "wrap": true,  
      "type": "TextBlock"  
    },  
    {  
      "columns": [  
        {  
          "width": "auto",  
          "items": [  
            {  
              "text": "Game: ",  
              "wrap": true,  
              "height": "stretch",  
              "type": "TextBlock"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "columns": [  
        {  
          "width": "stretch",  
          "items": [  
            {  
              "choices": [  
                {  
                  "title": "Call of Duty",  
                  "value": "call_of_duty"  
                },  
                {  
                  "title": "Death's Door",  
                  "value": "deaths_door"  
                },  
                {  
                  "title": "Grand Theft Auto V",  
                  "value": "grand_theft"  
                },  
                {  
                  "title": "Minecraft",  
                  "value": "minecraft"  
                }  
              ],  
              "style": "filtered",  
              "placeholder": "Search for a game",  
              "id": "choiceGameSingle",  
              "type": "Input.ChoiceSet"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "columns": [  
        {  
          "width": "auto",  
          "items": [  
            {  
              "text": "Multi-Game: ",  
              "wrap": true,  
              "height": "stretch",  
              "type": "TextBlock"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "columns": [  
        {  
          "width": "stretch",  
          "items": [  
            {  
              "choices": [  
                {  
                  "title": "Static Option 1",  
                  "value": "static_option_1"  
                },  
                {  
                  "title": "Static Option 2",  
                  "value": "static_option_2"  
                },  
                {  
                  "title": "Static Option 3",  
                  "value": "static_option_3"  
                }  
              ],  
              "isMultiSelect": true,  
              "style": "filtered",  
              "choices.data": {  
                "type": "Data.Query",  
                "dataset": "xbox"  
              },  
              "id": "choiceGameMulti",  
              "type": "Input.ChoiceSet"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "columns": [  
        {  
          "width": "auto",  
          "items": [  
            {  
              "text": "Needed by: ",  
              "wrap": true,  
              "height": "stretch",  
              "type": "TextBlock"  
            }  
          ],  
          "type": "Column"  
        },  
        {  
          "width": "stretch",  
          "items": [  
            {  
              "id": "choiceDate",  
              "type": "Input.Date"  
            }  
          ],  
          "type": "Column"  
        }  
      ],  
      "type": "ColumnSet"  
    },  
    {  
      "text": "Buy and download digital games and content directly from your Xbox console, Windows 10 PC, or at Xbox.com.",  
      "wrap": true,  
      "type": "TextBlock"  
    },  
    {  
      "text": "Earn points for what you already do on Xbox, then redeem your points on real rewards. Play more, get rewarded. Start earning today.",  
      "wrap": true,  
      "type": "TextBlock"  
    }  
  ],  
  "actions": [  
    {  
      "data": {  
        "msteams": {  
          "type": "invoke",  
          "value": {  
            "type": "task/submit"  
          }  
        }  
      },  
      "title": "Request Purchase",  
      "type": "Action.Submit"  
    }  
  ],  
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
  "version": "1.2"  
}  

iPhone :
191688-20220411-045226000-ios.png

Web :
191666-teams-typeafead-web.png

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,077 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Meghana-MSFT 2,341 Reputation points Microsoft Vendor
    2022-04-12T13:57:23.02+00:00

    We are able to repro this issue, we have raised a bug for the same. We will keep you posted on the updates.

    Thanks,
    Meghana


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.