SOLVED

isVisible setting not functioning in AdaptiveCard on iPhone Teams

Copper Contributor

I am using PowerAutomate to post an AdaptiveCard to a Teams user and wait for response.  The card has two separate Text Input / Submit options, only one is visible at a time.  This works on windows desktop, but on iPhone the isVisible setting is not recognized so nothing is hidden. 

 

First image is working as desired (desktop), second is incorrect (iPhone).  Is this a known issue, or is there an alternative that works on both platforms? 

 

Thanks!

Lyn

 

My card json is included here:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "weight": "Bolder",
            "size": "Large",
            "text": "Update status (hours, unavailable time, tasks):"
        },
        {
            "type": "Input.Text",
            "id": "myStatus1",
            "placeholder": "<Status>",
            "spacing": "Small",
            "isMultiline": true,
            "separator": true,
            "value": "{$root.previousStatus}",
            "inlineAction": {
                "type": "Action.ToggleVisibility",
                "id": "hideMyStatus",
                "title": "X",
                "targetElements": [
                    "myStatus1",
                    "myStatus2",
                    "submitMyStatusSet1",
                    "submitMyStatusSet2"
                ]
            }
        },
        {
            "type": "Input.Text",
            "id": "myStatus2",
            "placeholder": "<Status>",
            "spacing": "Small",
            "isMultiline": true,
            "separator": true,
            "isVisible": false,
            "inlineAction": {
                "type": "Action.ToggleVisibility",
                "title": "-",
                "id": "showPrevious",
                "targetElements": [
                    "myStatus1",
                    "myStatus2",
                    "submitMyStatusSet1",
                    "submitMyStatusSet2"
                ]
            }
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "title": "Submit",
                    "type": "Action.Submit",
                    "data": {
                        "submit": "myStatus1"
                    },
                    "id": "myStatus1Submit"
                }
            ],
            "id": "submitMyStatusSet1"
        },
        {
            "type": "ActionSet",
            "id": "submitMyStatusSet2",
            "isVisible": false,
            "actions": [
                {
                    "title": "Submit",
                    "type": "Action.Submit",
                    "data": {
                        "submit": "myStatus2"
                    },
                    "id": "myStatus2Submit"
                }
            ]
        },
        {
            "text": "{$root.messageToUser}",
            "type": "TextBlock",
            "size": "Small",
            "weight": "Bolder",
            "color": "Good",
            "separator": true
        }
    ]
}

 

1 Reply
best response confirmed by LynFin (Copper Contributor)
Solution
I believe I found the answer to my question. https://docs.microsoft.com/en-us/adaptive-cards/rendering-cards/renderer-status lists 'current status of each renderer' and shows that 'Element visibility changed' is supported only on the HTML platform. iOS / Android are shown as not supported.
1 best response

Accepted Solutions
best response confirmed by LynFin (Copper Contributor)
Solution
I believe I found the answer to my question. https://docs.microsoft.com/en-us/adaptive-cards/rendering-cards/renderer-status lists 'current status of each renderer' and shows that 'Element visibility changed' is supported only on the HTML platform. iOS / Android are shown as not supported.

View solution in original post