Oct 22 2020 07:20 AM
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
}
]
}
Oct 23 2020 06:50 AM
SolutionOct 23 2020 06:50 AM
Solution