cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Corissandageri
Level: Powered On

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
Level 10

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
Eelman
Level 10

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

Corissandageri
Level: Powered On

Re: Stop default status of alert is visible

Thank you, very simple in hindsight. 

Eelman
Level 10

Re: Stop default status of alert is visible

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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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