You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the enabled property of the button to be true by default (without passing any value during the Expand process) but also have the ability to pass a value and modify it, in this case, set it to false.
I tried the following approaches but encountered issues:
Using inline data binding ($data): If I include data inline in the adaptive card, the values don’t get overwritten during the Expand process.
Using conditionals: I attempted to set a default value with conditionals, but they don’t work properly when no value is passed in the context.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about setting default and fallback values in Adaptive Card templates. For example, I have this simple Adaptive Card:
{ "type": "AdaptiveCard", "version": "1.4", "body": [ { "type": "TextBlock", "text": "Example Adaptive Card" }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": "Click Me", "enabled": "${isEnabled}" } ] } ] }I want the enabled property of the button to be true by default (without passing any value during the Expand process) but also have the ability to pass a value and modify it, in this case, set it to false.
I tried the following approaches but encountered issues:
$data): If I include data inline in the adaptive card, the values don’t get overwritten during theExpandprocess.Here’s the code I use for expansion:
Is there a way to define a default value (e.g.,
trueforenabled) while still allowing it to be overridden during theExpandprocess?Beta Was this translation helpful? Give feedback.
All reactions