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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pattern Validation in ...
Power Apps
Answered

Pattern Validation in PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team , 

 

Requesting your suggestion on below usecase : 

 

I have textbox control and I should allow(show message) users to enter only those charters only else show message or change the border color of the Text box

 

It should be like 2800******.******.****** and 2800******.******

 

Thanks in Advance !

 

Regards,

Mahesh

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    HI @Anonymous ,

    Could you please share a bit more about the "********" that you mentioned? Does it represent any character or just letter?

     

    Based on the needs that you mentioned, I think the IsMatch function could achieve your needs. I have made a test on my side, please take a try with the following workaround:

    3.JPG

    Set the OnChange property of the Text Input Box to following:

    If(
     !IsMatch(TextInput1.Text, "2800(.{6})\.(.{6})\.(.{6})") && !IsMatch(TextInput1.Text, "2800(.{6})\.(.{6})"),
     Notify("The value you typed do not match the required format. 2800******.******.****** or 2800******.******", NotificationType.Error);Reset(TextInput1)
    );
    

    Please check the following GIF screenshot for more details:

    Test.gif

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-xida-msft ,

     

    Thank you so much .. I required the Same 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard