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

PowerApps show error message to user if it's not within the range.

Hi Team, 

 

I have created an app link to sharepoint list. Under Title colum, it contain numbers and alphabets + number as per below. 

jobcode.PNG 

On my Powerapps screen, searchbox, let's call it textsearchbox1. i want it to show error message in red color if user key in any number that is not in the SharePoint list. For example, in my sharepoint list Title column it contain number 78,79,IT01 and AJ0001. If user key in BA on textsearchbox1, a red error message will show. 

Capture.PNG

 

Any suggestion will be much appreciated 

 

Thanks 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BryanHuang11
Level: Powered On

Re: PowerApps show error message to user if it's not within the range.

I'm trying with 

If(Or(IsBlank(TextSearchBox1.Text),If(And(!IsBlank(TextSearchBox1.Text),!IsMatch(TextSearchBox1.Text,"Title")),true,false)),false,true)

 

Nothing change on the text box. it is always remain hidden 

3 REPLIES 3
BryanHuang11
Level: Powered On

Re: PowerApps show error message to user if it's not within the range.

I'm trying with 

If(Or(IsBlank(TextSearchBox1.Text),If(And(!IsBlank(TextSearchBox1.Text),!IsMatch(TextSearchBox1.Text,"Title")),true,false)),false,true)

 

Nothing change on the text box. it is always remain hidden 

Community Support Team
Community Support Team

Re: PowerApps show error message to user if it's not within the range.

Hi @BryanHuang11 ,

Based on the formula you provided, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:5.JPG

Set the Visible property of the ErrorMsgLabel to following:

If(
   !IsBlank(TextSearchBox1.Text) && Not(TextSearchBox1.Text in '20190325_case13'.Title),
   true,
   false
)

On your side, you may type following formula (set the Visible property of your ErrorMsgLabel control to following):

If(
   !IsBlank(TextSearchBox1.Text) && Not(TextSearchBox1.Text in JobCodeMatrix.Title),
   true,
   false
)

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

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BryanHuang11
Level: Powered On

Re: PowerApps show error message to user if it's not within the range.

Hi Team _ Kris Dai, 

 

It works. Yay 

 

Thank you So much 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 54 members 4,419 guests
Please welcome our newest community members: