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

Delay navigate screen

HI,

 

Is it possible navigate to another screen in a few seconds delay?

 

By pressing the button I turn on flow and navigate to screen.
AvLicense.Run();
Navigate(Screen2, Fade)


On the screen I present the results of the flow in display form (the flow create a new item, so it takes a few seconds and the page that comes up does not update)
I could not find a solution to navigate to a page in delay.

Does anyone have an idea?

 

 

Many thanks in advance

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PK_Hong
Level 8

Re: Delay navigate screen

Hi @Maorzd23

 

I would suggest to use

- Timer

 

Insert a Timer (make it invisible once done!)

- Set the Duration of the Timer as you wish (say 4000 ms = 4 sec)

- OnTimerEnd = Navigate(.....)

- Reset = true

- Start = (Set a context variable, example: "go")

 

Insert a Button (and name it "Next Page")

- OnSelect = UpdateContext({go: true})

 

OnVisible:

UpdateContext({go: false})

 

Hope this helps.

View solution in original post

13 REPLIES 13
PK_Hong
Level 8

Re: Delay navigate screen

Hi @Maorzd23

 

I would suggest to use

- Timer

 

Insert a Timer (make it invisible once done!)

- Set the Duration of the Timer as you wish (say 4000 ms = 4 sec)

- OnTimerEnd = Navigate(.....)

- Reset = true

- Start = (Set a context variable, example: "go")

 

Insert a Button (and name it "Next Page")

- OnSelect = UpdateContext({go: true})

 

OnVisible:

UpdateContext({go: false})

 

Hope this helps.

View solution in original post

Mike8
Level 10

Re: Delay navigate screen

Hello Maorzd,

By pressing the button I turn on flow and set a variable to true.
AvLicense.Run();
UpdateContext({varStartTimer:true})

You add a timer and,
Timer1.Start=varStartTimer.
Timer1.OnTimerEnd=Navigate(Screen2, Fade)

You can set the duration of the timer for example to 3 seconds and navigate to the screen after 3 seconds.

Not the best solution but hope that helps.

Maorzd23
Level: Powered On

Re: Delay navigate screen

Thanks! is't worksSmiley Happy

Highlighted
MarcBailey
Level 8

Re: Delay navigate screen

Hi Maorzd23,

 

I had a similar problem in the past where the screen I was navigating would not update until I clicked the Navigate control the second time.  I thought a Timer would take care of it but it did not.

 

I worked with the PowerApps Product Team and it was determined that there is a bug related to the syntax (I spoke with them last week and they are working on a fix): 

 

Gallery.Selected and Gallery.AllItems

 

I had to go back and switch everything to ThisItem.Column and similar workarounds.  Before I did the workarounds I was having problems with OnSelect -- Navigate and other controls where I would have to click the twice before they would work.

 

Let me know if this help.  Thanks, Marc...

Super User
Super User

Re: Delay navigate screen

@Maorzd23

 

First thing that came to my mind when I saw your question was the timer option and glad that it worked out.

 

However, on a second thought , I wouldn't want the user to wait on the same screen for a few seconds and then go to the next screen. I would rather navigate the user to the next screen and show a loading icon (gif image) which will be visible only till the time the gallery (assuming you are showing something in a gallery on the next screen) populates. (for which you can use the IsEmpty function)

 

Hope this makes sense.

 

Both the solutions work , however, I would recommend this as a better UX.

 

Let me know if you would like to know more about implementing this.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Maorzd23
Level: Powered On

Re: Delay navigate screen

Hi @ThatAPIGuy

 

It sounds interesting but right now the solution is enough for me,
Thanks anyway.

Super User
Super User

Re: Delay navigate screen

 

For those struggling for hours trying to make this work, as simple as it is...  The timer will NOT START in the editor.  You have to "play" your app for the time to actually function.  One of those #*%# little details that suck your time away... 

RKnighton88
Level: Powered On

Re: Delay navigate screen

Hi @PK_Hong,

 

Looks like you may be able to assist, I am wanting to add a delay on a button, looks like you resolved this for someone with success.

 

I have tried completing the steps provided, but I am not sure what I should be seeing on my screen. To be honest I am fairly new to PowerApps, so sorry if this is a silly question. 

 

Hope you can help. 

Super User
Super User

Re: Delay navigate screen

@RKnighton88 ,

 

Be sure to put the "at" sign in front of the name, or the user will not be notified that you mentioned them.  @PK_Hong  for example...

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 182 members 6,311 guests
Please welcome our newest community members: