This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Redirecting URL for few seconds


  1. boyconan90
    Member

    Can we change redirecting url for a few seconds after submissions?

    Posted 15 years ago #
  2. yuniar

    Do you mean you would like to display something like "Please wait...you will be redirected within 5 seconds" after form submission?


    MachForm Founder

    Posted 15 years ago #
  3. boyconan90
    Member

    yes, I want to do that. any ideas?

    Posted 15 years ago #
  4. yuniar

    That's quite simple, put this below into your form success message:

    Thank you! Please wait...you will be redirected within 5 seconds.
    
    <script type="text/javascript">function  delayedRedirect(){ window.location = "http://www.google.com" }; setTimeout('delayedRedirect()', 5000);</script>

    Make sure the javascript redirect code above is exactly one line.


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply