cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Corissandageri
Post Patron
Post Patron

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
Eelman
Super User
Super User

@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
Eelman
Super User
Super User

@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

Thank you, very simple in hindsight. 

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

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (30,861)