web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / teams adaptive card va...
Power Automate
Unanswered

teams adaptive card validation on text input

(0) ShareShare
ReportReport
Posted on by 26

Hello Team,

 

I am sending adaptive card in teams. this is part of my JSON -

 

{
"type": "Input.Text",
"id": "ABC Contract NumberField",
"placeholder": "Enter ABC Contract Number",
"value": "@{triggerOutputs()?['body/sapbtp_abc_contract_number']}",
"isRequired": false,
"regex": "^\\d{4}_[2-3]\\d{7}$",
"errorMessage": "Enter ABC Contract Number in proper format",
"isVisible": true
}

 

This adaptive card works fine in other branches of my flow. But for one branch if user insert value as 5100_39999601 in input text box, he is getting this error message from JSON 'Enter ABC Contract Number in proper format'. But I check this number obeys the regex. Then why it is showing the error? Can anyone help on this?

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @akshaykumar ,

     

    Can you paste the screenshot of the complete Adaptive Card JSON Payload here? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard