cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Talha
Advocate II
Advocate II

Find Special Characters in Textbox

Hi.,

I have a multiline Textbox., Users are going to enter the Text value. If users are enter any Special Character, i need to notify in label..

if User enter as PowerApps& then we need to inform you have enter a special char &.

 

So i need to avoid this list of letters &_,.';:/""!@$%^+=\|<>{}

 

this is possible in Textbox..

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
bean
Continued Contributor
Continued Contributor

Hi,

 

What you're trying to do should be possible to achieve. I've spent too long trying to get this going, but I'm sure it will work if you spend some time trying to work out the regular expression.

 

See https://powerapps.microsoft.com/en-us/tutorials/function-ismatch/

 

I'd reccomend doing something like:

If(
IsMatch(TextInput1.Text, "Your regular expression"),
"The field cannot contain the following characters: &_,.';:/""!@$%^+=\|<>{}"
)

 

Sean 

View solution in original post

1 REPLY 1
bean
Continued Contributor
Continued Contributor

Hi,

 

What you're trying to do should be possible to achieve. I've spent too long trying to get this going, but I'm sure it will work if you spend some time trying to work out the regular expression.

 

See https://powerapps.microsoft.com/en-us/tutorials/function-ismatch/

 

I'd reccomend doing something like:

If(
IsMatch(TextInput1.Text, "Your regular expression"),
"The field cannot contain the following characters: &_,.';:/""!@$%^+=\|<>{}"
)

 

Sean 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,125)