Developer forum

Forum » CMS - Standard features » Create form for receiving access to a specific file

Create form for receiving access to a specific file

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I would like to replicate the functionality found on the official DynamicWeb site when downloading a WhitePaper.
This means that I  would like to define a registration form, then send a confirmation to the user with a link to download the file and, ideally, limit access to the file for users who have filled the form.
I know that I can create this manually for every single file; I was just wondering if there would be a more reusable/automated way of doing it.

Thank you,

Adrian

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

The way we do it is simply using the Rich Text Editor in the receipt of the form - here you will make a link to the file to download in the text and it will be added to the receipt of the email.

An alternative is to let the user be redirected to a new page after form submission - and then the page after submission will contain the download link.

If you just want one page with one form that depending on some kind of selection will send an email with a link to different downloads, you have to do make some changes to the receipt template. E.g. you can use a hidden field in the form to submit the file to download.

To limit the link to only work for one user would require the user to login - all other solutions, like using a hash or token, will not work as that can just be forwarded to anyone. I cannot think of a way to limit a download link to one specific user without registering them and ask them to login - and even then they can share password until we get rid of those....

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the detailed description.

Indeed, limiting access seems too difficult without a certainty of the outcome.

Thank you,

Adrian

 

You must be logged in to post in the forum