Have two actions execute from button click


#1

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


#2

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


#3

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

Regards,
Jeff