microsoft / microsoft/AdaptiveCards
Input.ChoiceSet changeAction
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Description
Open Issues
-
Confirm how this may be impacted with other inputs. DECISION: Might be weird with Input.Text, but we can cross that bridge when we get there.
-
What about setting focus on an element, etc. Perhaps an action collection design. DECISION: Not at this time
-
Can we allow a per-choice action? DECISION: Not at this time.
-
Do we need to delineate between server-side and client-side variations? DECISION: Server-based actions only for now
-
What is the final name if we do decide to delineate? DECISION:
changeActionbecause it would work for Toggle.
Schema/spec
Property
Type
Required
Description
changeAction
Action
No
When specified, an the Action will be executed when a choice is made. Only supports Action.Submit and Action.Execute
Requirements
-
This property only works when
isMultiSelectis set tofalse -
Should work for any
style(radio buttons, and drop downs)
Examples
{
"type": "Input.ChoiceSet",
"label": "Select a user",
"isMultiSelect": false,
"choices": [
{ "title": "User 1", "value": "User1" },
{ "title": "User 2", "value": "User2" }
],
"changeAction": {
"type": "Action.Submit",
"id": "userSelectAction"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names Input.ChoiceSet and its changeAction property but provides no implementation files, tests, or renderer entry points. Start by tracing Input.ChoiceSet schema and renderer handling, then determine how the stated single-select and style requirements are covered. Done means the schema and documented behavior support the specified server-side actions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100