cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Corissandageri 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
Eelman 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
Eelman 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
Corissandageri Helper III
Helper III

Re: Stop default status of alert is visible

Thank you, very simple in hindsight. 

Eelman 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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,194)