Page 1 of 1

FeedbackForm - customizing e-mail subject and from fields?

Posted: Wed Apr 05, 2006 3:29 am
by Nexia
Hi,

I just installed the FeedbackForm module for the first time, and have one question.  In the help documentation it mentions that there is a special "Email From Field" input option, yet as hard as I look I can't seem to find this option when adding a field.

I want to have a very simple form which takes in the user's name, e-mail address, subject, and message.  I would like the e-mail messages to automatically set the 'From' address to the e-mail address entered by the user, and I'd also like to change the subject so that it reflects that of what the user entered.  Am I missing something obvious here? TIA.

Re: FeedbackForm - customizing e-mail subject and from fields?

Posted: Mon Apr 10, 2006 5:44 pm
by sjg
Hi. Well, you found yet another of my stupid bugs.

If you edit the file FeedbackForm.module.php, at lines 90-91, it has the repeated line:

Code: Select all

           $this->Lang('field_type_country')=>'CountryInput',
            $this->Lang('field_type_country')=>'CountryInput',
Replace the second country input line, so those two lines look like this instead:

Code: Select all

           $this->Lang('field_type_country')=>'CountryInput',
            $this->Lang('field_type_email_from')=>'EmailFromInput',
And then it should work as advertised.

Sorry!

Re: FeedbackForm - customizing e-mail subject and from fields?

Posted: Thu Nov 09, 2006 12:34 pm
by benn
Thanks, this has done the trick but the form has two input boxes. The first input box doesn't work but the second input box does.

Here is the link
http://www.movie-mogul.tv/index.php?page=contact

Here is the html

Code: Select all

<tr>
	<td class="required" align="right" valign="top">Email *</td>
	<td align="left" valign="top"><input name="m2ffemail[]" id="m2ffemail[]" value="" size="25" maxlength="255" type="text"><
				  <input name="m2ffemail[]" id="m2ffemail[]" value="" size="25" maxlength="255" type="text">>
	</td>
</tr>
I'm using cmsms 1.0.2
FeedbackForm 0.9.14