Skip to content

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

@kevin-boban-glean

Description

@kevin-boban-glean

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions