Forums

One Form - Download document relevant to specific download

ONERO 27 Mar, 2017
Good Day,

I am building a website where a visitor can download any one of a number of brochures. They need to fill in their name and email address first for every single brochure, click on download and a specific brochure pdf is downloaded. An email is sent to the sales team that displays what brochure was download, with the person's name and email address. My question is how do I create one form for all the different brochure downloads.

I have created individual forms for each individual brochure download, which works fine but logic tells me there must be a way to build just one form and program the form to download the brochure that is relevant to that specific download. A hidden field perhaps calling a field name.

Any advise would be greatly appreciated.
GreyHead 27 Mar, 2017
Hi Onero,

You can certainly do this. You need to have a way to identify the brochure that relates a particular page - you can do this from the page url or menu name.

Then I would create either a file with a data array or a database table to store the brochure file name and sales team contact. You can then load or included this info into your form and process the request accordingly.

Bob
This topic is locked and no more replies can be posted.