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 Apps / Restricting the text/s...
Power Apps
Unanswered

Restricting the text/symbols a user can type in a datacard

(0) ShareShare
ReportReport
Posted on by 265

Hello

 

I have a field called 'Name' in my powerapps form. I want it so users can only enter alphabet and a space and underscore. No other symbols work or are valid

 

Is it possible to have the following restrictions for when a user fills it in?:

  1. User can only enter the following special characters '_' and ' ' (Underscore and/or space) NO other characters like @, /, ? etc will be valid. (I initially had some expressions in my sharepoint column data validation to block characters but would prefer if i could do the opposite and allow space and only underscore

Theory (I just want to find out if the below is possible for now)

  1. Is it possible for only english letters/symbols to be accepted? We may have users typing in different languages like chinese so wanted to see if we should let them or see if we can translate or if there is a restriction that makes the form invalid.

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @tested1 

     

    Unfortunately, it isn't possible to restrict the characters that a user can enter. The best workaround is to show a warning, or prevent the user from continuing after they enter invalid data.

    @CarlosFigueira provides an example on how you can do this with the IsMatch function. You can modify his regular expression to specify more exactly the characters you want to allow or disallow.

     

    https://powerusers.microsoft.com/t5/General-Discussion/Latin-characters-limitation/m-p/190330

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard