microsoft / microsoft/AdaptiveCards

[Rendering][iOS] Default value of the Input.ChoiceSet not taken into account

Open
#9,209 4 comments 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.5

Application Name

Microsoft Teams

Problem Description

When using Input.ChoiceSet with Expanded style, and setting a Default value with the "value" field, it renders correctly and gets ticked on Teams native app, all the browser and on Android. On iOS it does not render as expected, i.e. the default value is not pre-selected.

Screenshots

Actual image sample: Image

JSON sample provides simplified adaptive card.

Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Input.ChoiceSet",
            "label": "New Input.ChoiceSet",
            "choices": [
                {
                    "title": "Choice 1",
                    "value": "value1"
                },
                {
                    "title": "Choice 2",
                    "value": "value2"
                },
                {
                    "title": "Test"
                }
            ],
            "placeholder": "Placeholder text",
            "style": "expanded",
            "value": "Test"
        }
    ]
}
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 with the provided Adaptive Card JSON and trace the iOS rendering path for the expanded Input.ChoiceSet. Compare its default-value handling with the browser and Android behavior described in the issue. Done means the choice matching the value field is pre-selected on iOS.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.