Forums

Form emailing in 2 different ways

erica1025 14 Jun, 2010
I'm having some problems with my form. When I do a test email of it, it is emailing correctly (showing all of the necessary information). However, I have received several emails where it doesnt have all of the fields (possibly like it was before it was updated a few weeks ago).
I only have one form with this email title (I checked) so it couldn't be that I am being sent two different forms.
Does anyone know whats wrong with it?
nml375 14 Jun, 2010
Hi,
The first thing that comes to mind, is that some of your visitors don't fill out the complete form before submitting.
The second thought is that your visitors see a cached version of the form.

In some cases, poor HTML-code may cause the form to work as intended on some browsers, while dropping some form fields in others. Feel free to send me a link to the form if you'd like me to verify that the code is proper.

One common issue is that some admins forget to update or rebuild the email template as they alter the form, but since you recieve your submissions correctly, I'd say we can safely rule this out here.

/Fredrik
nml375 14 Jun, 2010
Hi,
The HTML-code checks out fine, so I believe we can rule that one out.
The Cache headers seem fine aswell, so unless some of your users have browsers or proxies that does not honor cache-control, I don't believe this to be the issue either.

I did notice that the validation-code only requires 4 of the inputs to be filled/checked, so I am inclined to believe some of your users fail to fill out the form completely before submitting it.

In the incomplete emails, do you still see the "field headers" for the missing data?

/Fredrik
erica1025 14 Jun, 2010
The easiest way for me to show whats happening is to put both the different emails here:

Here is an email that does not show all of the information (i have put in generic filler for the required fields):
Name: Name Here
Title: sales representative
Company: Company Name
Address:
City:
State:
Zip
Email: email@address.com
Tel: 555-5555
Fax:
Choose One:
{radio0}



Other: {Other}
Type the Black Characters: {imageverification}


Here's the form email that is correct:
Name: Erica
Title: test
Company:
Address:
City:
State:
Zip
Email: production@email.com
Tel: test
Fax:
Please Have A Representative Contact Me Regarding:
Rentals 










Comments:
Type the Black Characters: {imageverification}


As you can see the wrong one is not telling you which of the check boxes was chosen and it is also missing the "Comments" box.
nml375 14 Jun, 2010
Hi,
In this case, there is nothing wrong with your form, but your visitor failed to fill out the required information. The {Radio0} text means there was no such form data submitted, which is "normal" (though perhaps not desired) with checkboxes not being ticked. As for the other form inputs, such as the Comment box, they are submitted with an empty string - thus the {text_23} placeholder for the Comments are replaced with an empty string.

I did notice there's no "required" validation for the Comments textbox, which would explain why this might be missing in some submissions. The checkboxes do require one to be checked - however, this is merely a javascript check, and simply disabling javascript support in your browser defeats this validation. For a "foolproof" validation, you'll have to use the serverside validation option.

/Fredrik
erica1025 14 Jun, 2010
Thanks for your help Fredrik!
This topic is locked and no more replies can be posted.