Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conditional enablement for Action.submit & Action.execute #125

Merged
merged 13 commits into from
May 1, 2024

Conversation

reenudeswal
Copy link
Collaborator

@reenudeswal reenudeswal commented Apr 25, 2024

Description

Added new boolean property called conditionallyEnabled which will be applicable to only Action.submit and Action.execute button. Button with this property set as true will be disabled until there is valid input in at least one of the required fields. If not passed default value is true for this and it will get ignored in case button isEnabled is passed as false.
Design doc : https://microsoft-my.sharepoint-df.com/:w:/p/dclaux/ERDxhgUQZalDhhF-dZ-JqcQB0lmaQzlk6olTX1X8Ic8RBw?wdOrigin=TEAMS-MAGLEV.p2p_ns.rwc&wdExp=TEAMS-TREATMENT&wdhostclicktime=1714022774737&web=1

Sample Card

If appropriate, please include a link to a card in one of the samples directories that can be used to validate this change. This can be an existing card or a card added with this PR.

WIP:
2. Need to make same change for Action.execute button, will add after thorough testing with Action.submit button.

  1. Testing video -
    https://github.com/microsoft/AdaptiveCards-Mobile/assets/85880757/f1e069b4-e6b5-41e5-8d04-9fa444baf06c

Copy link
Collaborator

@hggz hggz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some suggestions for review

@reenudeswal reenudeswal merged commit 1255cd8 into main May 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants