cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Talha
Level: Powered On

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
Highlighted
bean
Level 8

Re: Find Special Characters in Textbox

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
Highlighted
bean
Level 8

Re: Find Special Characters in Textbox

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
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,169)