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
-
I have a question about setting default and fallback values in Adaptive Card templates. For example, I have this simple Adaptive Card:
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 theExpand
process.Here’s the code I use for expansion:
Is there a way to define a default value (e.g.,
true
forenabled
) while still allowing it to be overridden during theExpand
process?Beta Was this translation helpful? Give feedback.
All reactions