Copilot Studio – Adaptive Cards Toggle Visibility


In this post, the author explores how to toggle the visibility of fields within adaptive cards in Copilot Studio BOTS. They provide an example of a card with a button that, when clicked, reveals a hidden field. They also demonstrate a second approach using an "Add+" button to display a second field. The author explains how to achieve this using the "ToggleVisibility" action in the adaptive card designer. They provide the code for both the button and the inline action. The author also mentions that the card version should be 1.5 or lower for it to work in Copilot Studio BOTS and advises against adding error messages on hidden fields.


Article 15m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time