Forum Discussion

kitthirasaki's avatar
kitthirasaki
Copper Contributor
Dec 31, 2023

Hyperlink in an AdaptiveCard Input.Toggle (either "text" or "label") is not rendering in Teams

I'm using the following JSON to specify a link in the text (and I also tried the label) of an Input.Toggle, but it does not work in Teams. It does work in the AdaptiveCards simulator, but not in the actual Teams product. Links do work within regular text blocks.

Example JSON:
{
"type": "TextBlock",
"text": "Please accept the [Terms of Service](https://snapinstruct.com/tos) and [Privacy Policy](https://snapinstruct.com/privacy).",
"wrap": true
},
{
"type": "Input.Toggle",
"title": "I accept the [Terms of Service](https://snapinstruct.com/tos)",
"id": "acceptTos",
"isRequired": true,
"errorMessage": "Accepting the Terms of Service is required",
"wrap": true,
"label": "[Terms of Service](https://snapinstruct.com/tos)"
},
{
"type": "Input.Toggle",
"title": "I accept the [Privacy Policy](https://snapinstruct.com/privacy)",
"id": "acceptPrivacy",
"isRequired": true,
"errorMessage": "Accepting the Privacy Policy is required",
"wrap": true,
"label": "Privacy Policy"
}

Resources