Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Screen's OnVisible event is not fired the first time navigating to it

Hi everyone,


I have come across a very weird bug here.


This is the code on one of my screen's OnVisible attribute:


When I navigate to this screen, my pop-up with the Visible attribute set to ShowSomeDialog is visible even though it should be set to false, and my label with the Text attribute set to SomeText is empty.


BUT, if I go to the previous screen and navigate to my problematic screen again, this time the OnVisible event seems to be triggered correctly.


The button that navigates to this problematic screen is a very simple Navigate function with nothing else:


Navigate(MyBuggedScreen, ScreenTransition.Fade)


Another weird thing about this situation is the fact that the application works perfectly when launched in 'Edit' mode, but has this bug when launched via 'Play' mode or via my cell phone.


What I've tried:

- Duplicating the screen and navigating to this new one instead of the original one (same bug);

- Using 'Save As' to create a new copy of my app (same bug);



I have no idea where to look next, any suggestions are welcome!



Community Support Team
Community Support Team

Re: Screen's OnVisible event is not fired the first time navigating to it

Hi @JimmyAinsley,

Do you initialize the ShowSomeDialog variable and SomeText variable in other place within your app?


I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:


The GIF screenshot as below:Test1.gif


Please take a try to re-create your app, and then check if the issue is solved.

If the issue still exists, please take a try with the following workaround:

Set the OnVisible property or OnStart property of the first screen of your app to following formula:


Set the OnSelect property of the "Navigate" button to following:

Navigate(MyBuggedScreen, ScreenTransition.Fade)

Set the OnVisible property of the MyBuggedScreen to following:


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.

Helpful resources

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 Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


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 (9,894)