Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Are you building Copilot, Teams or Outlook scenarios powered by Adaptive Cards? Visit Adaptive Card Documentation Hub, the new one-stop-shop for all your Adaptive Card needs! It has all the resources you're looking for, including complete documentation for many new features, such as Responsive layout, Icon, Badge, Carousel, Charts, and much more!
This page documents the TargetElement type, which represents an entry used to specify elements whose visibility should be changed by an Action.ToggleVisibility action.
Important note about accessibility: In version 1.3 of the schema we introduced a label property on Inputs to improve accessibility. If the Host app you are targeting supports v1.3 you should use label instead of a TextBlock as seen in some samples below. Once most Host apps have updated to the latest version we will update the samples accordingly.
TargetElement
Represents an entry for Action.ToggleVisibility's targetElements property.
TargetElement Properties
| Property | Type | Required | Description | Version |
|---|---|---|---|---|
| elementId | string |
Yes | Element ID of element to toggle. | 1.0 |
| isVisible | boolean? |
No | If true, always show target element. If false, always hide target element. If not supplied, toggle target element's visibility. |
1.0 |
Properties
elementId (Version 1.0)
Element ID of element to toggle
- Type:
string - Required: Yes
isVisible (Version 1.0)
If true, always show target element. If false, always hide target element. If not supplied, toggle target element's visibility.
- Type:
boolean? - Required: No