PDA

View Full Version : Contact Form Solution Pack


edgar294281
07-18-2010, 01:32 AM
I want to customize the title of the results email that has been sent by the form.
It is set for "Contact Form Response". I like to change it to read "Newsletter Form Response".

Thanks

neilo
07-18-2010, 06:22 AM
Hi Edgar,

You can change the Email Subject by editing the WA_Globals/WA_Globals.php file.

Make the change to the line:

$WAGLOBAL_Contact_Email_Subject = "Online Contact Form Response" ;

To whatever you want.

edgar294281
07-19-2010, 08:56 AM
Yes, this is true but the email that sends the results of the completed form do not change.
You get the info the was completed in the form but above that the title still reads Contact Form Response.

Jason Byrnes
07-19-2010, 09:08 AM
you can change the email contents in the WA_Universal_Email/Templates/contactus.php file.

edgar294281
07-19-2010, 12:07 PM
Thank you Jason!
This is another question for you. I want to delete some of the input fields in the form.
I only want one field and that is the the input field for an email.

How do I do this?

Jason Byrnes
07-19-2010, 12:33 PM
for each form element you wish to remove, you will need to remove the code for the server validation and the spry validation.


for example, if you remove the Contact_Name form element, you will need to delete the following line from the top of the page:

$WAFV_Errors .= WAValidateRQ(((isset($_POST["Contact_Name"]))?$_POST["Contact_Name"]:"") . "",true,1);

and this line from near the bottom:

var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});

edgar294281
07-19-2010, 01:06 PM
Thank You!

Jason Byrnes
07-19-2010, 01:13 PM
you're welcome.