How to redirect the user to other page in n seconds?

I'm developing a register screen and i want the user to be redirected back to the homepage after 5 seconds, how can i do that? 

Hi Lucca,

You can  do this in javascript:

"setTimeout(function(){ location='<url of the homepage>'; }, 5000);"

Replace the <url of the homepage> with the url that you want.

For traditional web app use a RunJavascript action in preparation.

For reactive Web use a JavaScript widget in OnInitialize event handler.

Regards,

Daniel

Lucca Beurmann wrote:

I'm developing a register screen and i want the user to be redirected back to the homepage after 5 seconds, how can i do that? 

Hello Lucca, you can do this in javascript with setTimeout()


https://www.w3schools.com/jsref/met_win_settimeout.asp


Example

"setTimeout(function(){ location='<url of the homepage>'; }, 3000);"

Hi Lucca,


I agree with the javascripts suggested above using 

setTimeout(function(){ location='<url of the homepage>'; }, 3000);


Also, You can check the forge component Delay. It supports both sync and async delays.

https://www.outsystems.com/forge/component-overview/2553/delay


Let me know if this helps.


Regards,

Saugat