cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Anonymous
Not applicable

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

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

v-xida-msft
Community Support
Community Support

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

Hi Team _ Kris Dai, 

 

It works. Yay 

 

Thank you So much 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (73,612)