I want to introduce a file download at the bottom of certain blog posts where, in order to receive that download, someone needs to register their email address, any idea how I do this?
To be clear, only a few blog posts will have this, and depending on which blog post they sign up via, they will receive a different PDF download.
I am happy to do it whereby they request the download via a subscriber form and it then gets automatically emailed to them (by my mailchimp autoresponder).
What you can do as a workaround is to create a reference collection with all the URLs for your download link
You can then use the code below in the footer section of the individual page template for your product/service
<script>
var Webflow = Webflow || [];
Webflow.push(function() { //Webflow's custom push function must be included to ensure submission occurs
$('#emailForm').submit(function() {
setTimeout(function() {
location.href = 'https://dl.your-dynamic-download-link-here.com' ;
}, 2000);
});
});
</script>
You would then replace the https://dl.your-dynam..... with the appropriate CMS tag to ensure each form redirects to the respective download link set in the URLs collection,