Tagged: contact forms, forms, validation
-
AuthorPosts
-
October 1, 2015 at 2:11 am #511906
I have two simple contact forms on our site and both of them have validations set (Name field set to “is not empty” and email field set to “must be a valid email address”). However, the only field which seems to have working validation is the last field on the form, Message. If I try to send an empty message, that field is highlighted as expected and the form will not submit without some text in the field. On the other hand, if that field has text in it and all the other fields (Name, email, etc.) are empty, the form will submit with a problem, ignoring the validations. This becomes a problem because we’re getting emails from our site with no way to contact the original sender to address their issue.
We are using a Caching plugin (W3 Total Cache) to reduce load times, but I’m not sure if that would affect Contact Forms (and if it does, I’m not sure how I would exclude just those pages from being cached.
- This topic was modified 9 years, 1 month ago by reynoldsphobia.
October 1, 2015 at 2:14 am #511908Hi!
I’m unable to reproduce it on my end – http://screencast.com/t/WJMaBP0dXawW (form doesn’t send).
Best regards,
JosueOctober 1, 2015 at 2:33 am #511913Thanks, Josue. I turned off Page Caching and was able to get the main Contact form working again, but the Contact form on our Support page (which gets more traffic) is still not validating properly. The only difference between the two is that the Contact page form is the sole element on the page and the Support page form is inside a 1/2 column which is nested inside a color section. Could that cause a conflict?
October 1, 2015 at 11:40 am #512079Hi!
Hm, i still can’t send the form without filling all the fields – http://screencast.com/t/0jqbcF8uxG
Best regards,
JosueOctober 1, 2015 at 9:40 pm #512446Thanks for looking into this, Josue.
I think the problem was completely on our end with the Cache plug in. When I turned off Page Caching and the server refreshed, the forms seem to maintain their validation now. Sorry for the inconvenience.
~M
October 1, 2015 at 10:11 pm #512456No problem, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.