I am creating a flow which posts an adaptive card to a Teams Chat.
The flow has 2 action.submit buttons (Approve & Reject) and one input.text field.
Is it possible that when a user clicks the Reject button it makes the input.text required, but when approve button is clicked input.text is optional?
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "APPROVE",
"id": "btnApprove"
},
{
"type": "Action.Submit",
"title": "REJECT",
"id": "btnReject"
}
]
},
{
"type": "Input.Text",
"placeholder": "Comments",
"id": "txtComments",
"isMultiline": true
}