microsoft / microsoft/AdaptiveCards

[iOS][Teams][Rendering] iOS app displays value instead of title in Input.ChoiceSet fields

Open
#9,271 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

iOS

SDK Version

1.6

Application Name

Microsoft Teams

Problem Description

This issue only comes up in the iOS app. Works fine on Android, Desktop app, browser.

The bot sends the adaptive card attached below on an invoke task/fetch. Note that the field is pre-populated with an initial value of Eng_Oncall.
On the iOS app however, it's the value(264:11441) that comes up instead of the title(Eng_Oncall).

I posted about it here: https://learn.microsoft.com/en-us/answers/questions/5585269/ios-app-displays-fieldvalue-instead-of-fielddispla?page=1&orderby=helpful&comment=answer-12288395&translated=false#newest-answer-comment
As noted there, the issue happens with "filtered" style only. However, I need to use filtered style since my dropdown uses typeahead search: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/dynamic-search

Screenshots

Works fine in the desktop app

Image

Issue in the iOS app

Image
Card JSON
{
  "task" : {
    "type" : "continue",
    "value" : {
      "title" : "",
      "width" : 500,
      "card" : {
        "contentType" : "application/vnd.microsoft.card.adaptive",
        "content" : {
          "type" : "AdaptiveCard",
          "version" : "1.6",
          "$schema" : "http://adaptivecards.io/schemas/adaptive-card.json",
          "body" : [ {
            "type" : "Input.ChoiceSet",
            "id" : "FIELD_NAME_KEY_serviceDeskId",
            "wrap" : "true",
            "choices" : [ {
              "title" : "Eng_Oncall",
              "value" : "264:11441"
            }, {
              "title" : "IT Support",
              "value" : "301:11631"
            }, {
              "title" : "RC TEST PROJECT",
              "value" : "252:11406"
            }, {
              "title" : "IT4IT",
              "value" : "302:11634"
            } ],
            "style" : "filtered",
            "value" : "264:11441",
            "spacing" : "medium",
            "label" : "Service Desk",
            "isRequired" : true,
            "placeholder" : "Select a value",
            "isMultiSelect" : false,
            "errorMessage" : "This field is required"
          } ],
          "actions" : [ {
            "type" : "Action.Submit",
            "title" : "Next",
            "data" : {
              "id" : "ActionCardNextAction",
              "msteams" : {
                "type" : "task/fetch"
              },
              "feedbackActionValueKey" : "c20bb82a-f200-414f-9b59-b12fa8895c20-130",
              "fieldData" : {
                "fields" : [ {
                  "fieldName" : "serviceDeskId",
                  "fieldDisplayName" : "Service Desk",
                  "fieldValue" : "264:11441",
                  "fieldDisplayValue" : "Eng_Oncall"
                } ]
              }
            },
            "style" : "positive"
          } ]
        }
      }
    }
  }
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Adaptive Card JSON in the iOS app, focusing on the pre-populated Input.ChoiceSet with filtered style. Trace the iOS rendering path for that field and compare it with the working platforms; done means the title Eng_Oncall is displayed instead of 264:11441 while retaining typeahead search.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.