adaptive cards
1 TopicAdaptive Card "Only Show When" based on string value containing
I have an adaptive card that I'm using in Power Automate. The source is from a SharePoint list that has a multiple choice field that can contain any combination of "Facebook", "Twitter", and/or "Instagram". The adaptive card has a section for each icon to appear based on if the "Platform" value contains the corresponding value (e.g., Facebook icon appears if the Platform value contains "Facebook"). I can't seen to get the syntax correctly so that the icon only appears when the value contains the correct platform. With my current coding, the icons appear regardless of the value. Any thoughts? See attached image. But the current code is: "items": [ { "type": "Image", "size": "Small", "spacing": "None", "url": "https://i.imgur.com/FM5R4eW.png", "id": "Instagram_Image", "$when": "$contains(\"@{body('Join_PLATFORMS')}\",\"Instagram\")" }Solved