AdaptiveCards
AdaptiveCards copied to clipboard
[iOS] [isVisible property in Adaptive card not working in mobile]
I am rendering an Adaptive card in iOS with some hidden button with isVisible: false property. The hidden Actions items are all shown in iOS where as, It works fine in Android and Desktop App.
iOS View :

Android View:

Platform
What platform is your issue or question related to? (Delete other platforms).
- iOS
Sample Json for repro
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Happy to help with that. What would you like to book?",
"placeholder": null,
"value": null,
"choices": null,
"min": 0,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "Input.ChoiceSet",
"text": null,
"placeholder": "Annual Time Off",
"value": "UGS Vacation",
"choices": [
{
"title": "Annual Time Off",
"value": "Holiday Time Off"
}
],
"id": "Title",
"color": null,
"min": 0,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "TextBlock",
"text": "Sure, happy to assist!",
"placeholder": null,
"value": null,
"choices": null,
"min": 0,
"actions": null,
"items": null,
"isVisible": false
},
{
"type": "TextBlock",
"text": "How many days would you like to book?",
"placeholder": null,
"value": null,
"choices": null,
"color": "Accent",
"min": 0,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "Input.Number",
"text": null,
"placeholder": "Number of days",
"choices": null,
"id": "number",
"color": null,
"min": 1,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "TextBlock",
"text": "Leave start date:",
"placeholder": null,
"value": null,
"choices": null,
"color": "Accent",
"min": 0,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "Input.Date",
"text": null,
"placeholder": "Pick a date",
"choices": null,
"id": "date",
"color": null,
"actions": null,
"items": null,
"isVisible": true
},
{
"type": "ActionSet",
"text": null,
"placeholder": null,
"value": null,
"choices": null,
"id": "validate",
"color": null,
"min": 0,
"actions": [
{
"type": "Action.Submit",
"title": "Validate",
"data": {
"Title": "sick leave",
"Action": "NewTimeOffFeature",
"Intent": "BTHRTimeOffU2BSpecIWantToBook",
"EntityNumber": "Numeric",
"EntityDate": "DateTime",
"NumDisplayText": "VacationDuration",
"DateDisplayText": "VacationStartDate",
"Feature": "TimeOff",
"TimeOffAction": "TimeOffValidation",
"ValidateEnddate": "",
"type": null
}
},
{
"type": "Action.Submit",
"title": "Cancel",
"data": {
"Title": null,
"Action": "NewTimeOffFeature",
"Intent": null,
"EntityNumber": null,
"EntityDate": null,
"NumDisplayText": null,
"DateDisplayText": null,
"Feature": null,
"TimeOffAction": null,
"Value": "Cancel",
"ValidateEnddate": "",
"type": null
}
}
],
"items": null,
"isVisible": true
},
{
"type": "TextBlock",
"text": "{input1}",
"wrap": true,
"isVisible": false
},
{
"type": "Container",
"text": null,
"placeholder": null,
"value": null,
"choices": null,
"color": null,
"min": 0,
"actions": null,
"items": [
{
"type": "TextBlock",
"text": "{input}",
"id": "Summary",
"color": "Dark",
"wrap": true
}
],
"isVisible": false
},
{
"type": "ActionSet",
"text": null,
"placeholder": null,
"value": null,
"choices": null,
"color": null,
"min": 0,
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"Feature": "TimeOff",
"TimeOffAction": "PostTimeOff",
"ValidateEnddate": "",
"Value": false,
"type": "Attachment"
}
},
{
"type": "Action.Submit",
"title": "Cancel",
"data": {
"Feature": null,
"TimeOffAction": null,
"Value": "Cancel",
"ValidateEnddate": "",
"type": null
}
}
],
"isVisible": false
},
{
"type": "TextBlock",
"text": "Would you also like to attach a prescription?",
"isVisible": false,
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Yes, attach a prescription ",
"data": {
"Feature": "TimeOff",
"TimeOffAction": "PostTimeOff",
"Value": true,
"ValidateEnddate": "",
"type": null
}
},
{
"type": "Action.Submit",
"title": "No, submit anyway",
"data": {
"DateDisplayText": "VacationStartDate",
"Feature": "TimeOff",
"TimeOffAction": "PostTimeOff",
"Value": false,
"ValidateEnddate": "",
"type": null
}
},
{
"type": "Action.Submit",
"title": "Cancel",
"data": {
"Title": null,
"Action": "NewTimeOffFeature",
"Intent": null,
"type": null
}
}
],
"isVisible": false
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"minHeight": "74px"
}
@Subhasish-msft Thanks for reporting the issue and providing the payload. I can reproduce the issue at my end.
Hi @Subhasish-msft. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.