File download form capture
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This module adds a formatter to the core ‘file’ field, so when the file link is clicked by a user they are required to submit an entityform before they can download the selected file.
The entityform will be open inside a ctools popup when js is enabled, or on a separate page when js is not available. Once the form has been submitted without validation errors, the user will then be served up the file as a download in the browser.
In the file field’s formatter settings, the required entityform can be selected.
This module can be useful when the details of the user downloading a particular file needs to be captured for later use.
Installation
1. Copy the file_download_form_capture module to sites/all/modules directory.
2. Enable the module at Administer >> Modules.
Usage
1. To configure the file formatter on a content type, go to Administer >> Structure >> Content Types >> [your content type].
2. Add a file field to the content type, if necessary, under Manage Fields section.
3. Click Manage Display next to the content type with your file field.
4. Select "File form capture" from the settings box next to the file field.
5. Click the grey cog on the file field’s row, then select the entityform to show in the popup.
6. Click Update at the bottom of the field settings section.
7. To add a label to the download link, use the file’s Description field on the content’s edit page.
Dependencies:
- entityform
- ctools
