Solved

Have two actions execute from button click

  • 15 March 2017
  • 2 replies
  • 19 views

Hi,
We have created a page for downloading an Ebook. The way the page works is once someone completes the form they are taken to a confirmation dialog page where they click on a button to download the Ebook.

After the Ebook is downloaded, we would like the visitor to be redirected to a different URL.

Any ideas how I could have the button execute the download then forward the person to an URL?

Thanks for any help!

J

icon

Best answer by Hristian 16 March 2017, 12:31

View original

2 replies

Userlevel 7
Badge +3

Hi Jeff,

You’ll need a custom piece of javascript that would listen for the click/touch on your download button and redirect appropriately.

You can find a similar script in this thread but the example provided would redirect after a certain amount of time. It doesn’t take into account whether a download button was clicked or not.

Best,
Hristian

Thanks, I’ll have our developer take a look at the code.

Regards,
Jeff

Reply