Recently, I have created an adaptive card form for Microsoft Teams. This adaptive card form will be generated by the flow.
What I want to achieve is the following:
I want to add validations for some fields and make it required.
I have tried to add the following:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Input.Text",
"id": "acEMName",
"placeholder": "Name",
"validation": {
"necessity": "Required",
"errorMessage": "Employee name is Required"
}
}
]}
Unfortunately, what I have tried didn't work as expected, which means I can submit the form even if I didn't fill the field.
Can please someone explain why it doesn't work?
Any help will be greatly appreciated. Thank you.