-
Notifications
You must be signed in to change notification settings - Fork 550
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
Action.ToggleVisibility does not trigger an onAction event #8711
Comments
Have you tried using your JSON in the designer? I didn't find any issues there. |
Correct, Action.ToggleVisibility triggers the action event (i.e. pops up the alert with the data) in the Designer tool but not in SharePoint Framework (v 1.18 and tested with earlier versions). The other universal actions do trigger the event in code. |
@aboultonhumana, Have you spoken with the developers who maintain SharePoint Framework? As demonstrated, Adaptive Cards are functioning correctly, as the designer is running on the latest version of Adaptive Cards. |
Thanks @jwoo-msft -- agreed it's an issue with the SPFx implementation. For anyone stumbling upon this, a workaround is to not use the ToggleVisibility action, but instead to use Action.Execute in combination with the $when attribute in the JSON template to show/hide the element based on a value stored in the card's state (e.g. a value of |
Target Application
Viva Connections Dashboard
Application Operating System
Windows
Schema Version
1.5
Problem Description
Setting an action of
Action.ToggleVisibility
in the Quick View JSON does not trigger theonAction
event in SPFx code.Expected Outcome
Expecting the
Action.ToggleVisibility
action to trigger anonAction
even in the same way thatAction.Submit
andAction.Execute
trigger the event.Actual Outcome
onAction
event is not triggered.Card JSON
Repro Steps
onAction
event.The text was updated successfully, but these errors were encountered: