web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Hide adaptive card obj...
Power Automate
Unanswered

Hide adaptive card object based on condition

(0) ShareShare
ReportReport
Posted on by 47

I have a simple adaptive card, with 3 input fields.

  • "ac_status" (visible at start)
  • "ac_category" (not visible at start)
  • "ac_comment" (not visible at start)

I am intending to conditionally unhide input fields ("ac_category" & "ac_comments") if the value of "ac_status" is "Closed".

 

{
 "type": "AdaptiveCard",
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.4",
 "body": [
 {
 "type": "Container",
 "items": [
 {
 "type": "Input.ChoiceSet",
 "choices": [
 {
 "title": "Open",
 "value": "Open"
 },
 {
 "title": "Closed",
 "value": "Closed"
 }
 ],
 "placeholder": "Open / Closed",
 "isRequired": true,
 "errorMessage": "Input required",
 "label": "Status of the query:",
 "style": "expanded",
 "id": "ac_status",
 },
 {
 "type": "Input.ChoiceSet",
 "choices": [
 {
 "title": "Production issue",
 "value": "Production issue"
 },
 {
 "title": "Client issue",
 "value": "Client issue"
 }
 ],
 "placeholder": "Select category",
 "label": "Where does this query fall under?",
 "isRequired": true,
 "errorMessage": "Input required",
 "isMultiSelect": true,
 "id": "ac_category",
 "isVisible": false,
 "$when": "${ac_status.value == 'Closed'}" 
 },
 {
 "type": "Input.Text",
 "placeholder": "Placeholder text",
 "isMultiline": true,
 "label": "Additional Comments:",
 "id": "ac_comments",
 "separator": true,
 "isVisible": false,
 "$when": "${ac_status.value == 'Closed'}" 
 }
 ],
 "style": "default"
 }
 ]
}

 

I am unsure where i am going wrong with this. Please help me.

Categories:
  • mando643 Profile Picture
    26 on at

    Did you end up figuring this out having the same issue. Seems to work in the editor designer view but not in the actual teams action.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard