Closed (fixed)
Project:
Email Download
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2009 at 15:53 UTC
Updated:
9 Mar 2010 at 05:30 UTC
I'd like to be able to add more fields to the form
Comments
Comment #1
hadsie commentedCan you please be more specific. What fields do you want, and what form do you want to add them to?
Comment #2
daggerhart commentedI'm not the original poster, and I am using the D6 version, but a file-description field would be wonderful!
Comment #3
kappaluppa commentedRight now it only asks for email address. I need to get name, email , company, title - all required.
Thanks,
K
Comment #4
kappaluppa commentedI was able to modify the module to add the extra fields I need. It also displays them in the Administer Downloads section.
I have one problem tho, and I don't know where to fix it. Once the data is entered into the form, and the file can be downloaded, the page does not change, but stays at the form. I need it to redirect after the download. Can you give me a clue where that is?
Comment #5
hadsie commentedI'm thinking the most flexible way to handle this might be to use cck for building the form and also tracking the download data....
As for the redirect after download, I think this may be a bug in the module, but I'm not sure what you mean when you ask for "a clue where that is". Where /what/ is?
Comment #6
kappaluppa commentedAs far as the "clue" goes, I just meant I didn't know how to do it, and where to add it.
As for the extra fields, I just added them to the form in the .module file.
For the redirect I ended up adding an extra line in the header: header('Refresh: 2; url=http://yoursite.com/redirec-to-this-page');
Both the extra fields and the redirect are hard coded. The most ideal thing would be to have an editable option for them.
This has been resolved.
Comment #7
hadsie commentedThanks @kappaluppa, I might test that with the D6 code as well (the redirect) as I think there's a problem with it too.
Comment #8
hadsie commentedI've added some more custom fields in the latest dev release (just happen to be the fields you've requested here, actually :) ).. I also tried to make that redirect work, but with no luck. Perhaps a little javascript hack will do the trick, but I think i'm just going to keep it as is for now.