'How to extend choice in adaptive card when option in ChoiceSet selected?

I have no idea how to use "Only show when" property in my ChoiceSet. I want "Version" ChoiceSet to be displayed when second option in the first ChoiceSet is selected. Maybe I need to save responce from the first ChoiceSet to a variable but I also have no idea how to do it.

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
    {
        "type": "Input.ChoiceSet",
        "choices": [
            {
                "title": "Online",
                "value": "Online"
            },
            {
                "title": "On-Premise",
                "value": "OnPremise"
            }
        ],
        "placeholder": "Placeholder text",
        "style": "expanded",
        "id": "EnvironmentType"
    },
    {
        "type": "TextBlock",
        "text": "choose version",
        "wrap": true
    },
    {
        "type": "Input.ChoiceSet",
        "choices": [
            {
                "title": "2019",
                "value": "2019"
            },
            {
                "title": "2016",
                "value": "2016"
            }
        ],
        "placeholder": "Version",
        "isVisible": false,
        "id": "ChoiceSetId"
    }
]

}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source