I have an adaptive card which include the input fields
I want to validate the fields - validation as below
how to validate input field from adaptive card in bot framework v4 in c#? can anyone please help me.Thanks in advance.
There is not an easy way to do validation for an Adaptive Card. The best option would be to use ActivityPrompt with a custom validator.
Basically:
Attachments
property of your ActivityPrompt The reason you need to use ActivityPrompt is because AdaptiveCard input comes back in Activity.Value
instead of Activity.Text
and ActivityPrompt will let you call validation on the whole activity.
Alternatively, you may find ActivityCardPrompt helpful, but you'll still need to use your own validator.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.