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 

View solution in original post

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 

View solution in original post

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
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,761)