cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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
Highlighted
Anonymous
Not applicable

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
Highlighted
Anonymous
Not applicable

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

Highlighted
Community Support
Community Support

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

Hi @Anonymous ,

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.
Highlighted
Anonymous
Not applicable

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,108)