adding additional fields to the form

kappaluppa - September 21, 2009 - 15:53
Project:Email Download
Version:5.x-1.1
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'd like to be able to add more fields to the form

#1

hadsie - September 21, 2009 - 17:38

Can you please be more specific. What fields do you want, and what form do you want to add them to?

#2

daggerhart - September 22, 2009 - 21:57

I'm not the original poster, and I am using the D6 version, but a file-description field would be wonderful!

#3

kappaluppa - October 7, 2009 - 22:02

Right now it only asks for email address. I need to get name, email , company, title - all required.

Thanks,
K

#4

kappaluppa - October 9, 2009 - 06:21

I 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?

#5

hadsie - October 13, 2009 - 03:19

I'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?

#6

kappaluppa - October 13, 2009 - 16:08

As 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.

#7

hadsie - October 13, 2009 - 16:22

Thanks @kappaluppa, I might test that with the D6 code as well (the redirect) as I think there's a problem with it too.

 
 

Drupal is a registered trademark of Dries Buytaert.