Card validations are not working
I have tried to do Validations in card, it's working only in emulator but I need these validations to be work in msteams and webchat and some other channels. The below two type of templates I have used with version 1.2
{
"type": "AdaptiveCard",
"inputNecessityIndicators": "requiredInputs",
"displayInputSuccessIndicators": true,
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Please confirm your username"
},
{
"type": "Input.Text",
"id": "username",
"placeholder": "Username",
"isRequired": true,
"regex": "^\\w{5,50}$",
"errorMessage": "Username must be between 5 and 50 characters long."
},
{
"type": "Input.Toggle",
"id": "accept",
"title": "I accept the policy",
"isRequired": true,
"errorMessage": "You must accept the policy."
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Confirm",
"data": "action=confirm"
},
{
"type": "Action.Submit",
"title": "Cancel",
"data": "action=cancel",
"ignoreInputValidation": true
}
]
}
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "Container",
"items": [
{
"type": "Container",
"items": [
{
"text": "Fill the following properties",
"type": "TextBlock"
}
]
}
]
},
{
"type": "Container",
"items": [
{
"placeholder": "enter email",
"type": "Input.Text",
"id": "email",
"validation":{
"necessity":"required",
"errorMessage":"email is Required"
}
}
]
},
{
"type": "Container",
"items": [
{
"placeholder": "enter phone numer",
"type": "Input.Text",
"id": "phonenumber",
"validation":{
"necessity":"required",
"errorMessage":"Phone number is Required"
}
}
]
}
]
}
@dclaux / @almedina-ms / @matthidinger for visibility here in case I am misunderstanding the "Validations" reference here but @KoradaRajesh we don't yet support card validation natively in AdaptiveCards but that feature is in the works and should be out sometime next month. You can see the current status of the feature here.
Sure @shalinijoshi19 Thank you!
@siduppal / @Wajeed-msft any updates on expected upgrade timelines for Teams to pick up the 1.3 schema at all? Thanks!
The team is actively working on updating the features but currently we cant give an ETA on when it will be available.
PLease mention here once it get updated.
@shalinijoshi19 @VaraPrasad-MSFT any updates on this issue ? or maybe expected timelines for 1.3 schema release? Thank you!
@mpodhornyi , Currently we don't have any ETA to share when it will be in GA.
@KoradaRajesh @andrewleader How do we add regex for email validation?
"validation":{
"necessity":"required",
"errorMessage":"email is Required"
}
@VaraPrasad-MSFT @Wajeed-msft - Any update on the resolution of this issue? It's open for quite some time now... Please share an ETA for resolution.
sorry i don't know all the issues
From: prchanda @.> Sent: 15 July 2021 22:49 To: microsoft/AdaptiveCards @.> Cc: Subscribed @.***> Subject: Re: [microsoft/AdaptiveCards] Card validations are not working (#4050)
@VaraPrasad-MSFThttps://github.com/VaraPrasad-MSFT @Wajeed-msfthttps://github.com/Wajeed-msft - Any update on the resolution of this issue? It's open for quite some time now... Please share an ETA for resolution.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AdaptiveCards/issues/4050#issuecomment-880757472, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARYQKHWQNUWZRDAZA332BFTTX3YO7ANCNFSM4NH35GSQ.
Currently there are no updates on this which I can share.