cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Stop default status of alert is visible

Hi

I have a slight variant on a solution here, and it is working well other than on opening the app the alert "Value can not be more than the amount ordered" is displayed before I enter in any values. Hopefully, my screenshot explains.

Screenshot 2020-02-23 16.18.54.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: Stop default status of alert is visible

@Corissandageri 

You probably need to set the variable for that label to false when this screens becomes visible, ie

 

Screen1.OnVisible = UpdateContext({ ShowErrorMsg: false })

 

This gets added to any other code already there. At some point, the variable was likely set to true and never reset? You could also add this code after the Patch().

View solution in original post

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

Re: Stop default status of alert is visible

@Corissandageri 

You probably need to set the variable for that label to false when this screens becomes visible, ie

 

Screen1.OnVisible = UpdateContext({ ShowErrorMsg: false })

 

This gets added to any other code already there. At some point, the variable was likely set to true and never reset? You could also add this code after the Patch().

View solution in original post

Highlighted
Helper III
Helper III

Re: Stop default status of alert is visible

Thank you, very simple in hindsight. 

Highlighted
Resident Rockstar
Resident Rockstar

Re: Stop default status of alert is visible

Variables have a special way of messing with us, haha. Happy to help 🙂 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

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 (11,538)