| Web Design Web Design type posts here |
09-04-2012, 04:30 PM
|
#1
|
|
Junior Member
Join Date: Jul 2011
Posts: 6
|
Wordpress
Hello,
I am looking for a place to find help on my wordpress issue.
On wordpress, I use a plugin called 'Form 7'. For some unknown reason, Form7 always gives me validation issues no matter what I do. Help please? Code for the form is the following:
Code:
<p>Your Name (required)<br />
[text your-name] </p>
<p>Your Email (required)<br />
[email your-email] </p>
<p>Subject<br />
[text your-subject] </p>
<p>District Name<br />
[text district-name] </p>
<p>Street Address<br />
[text address] </p>
<p>City<br />
[text city] </p>
<p>State<br />
[text state] </p>
<p>Zip Code<br />
[text zip] </p>
<p>Contact Phone Number<br />
[text phone] </p>
<p>Best Time to Call<br />
[text best-time] </p>
<p>Your Message<br />
[textarea your-message] </p>
<p><strong>I would like more information on:</strong><br />
[checkbox more-info label_last "Lean Your Budgets Seminar"
"LeanLocal Fundraiser"
"IDEAS: Autism Training"
"Job-Embedded Coaching"
"RTI: Response to Intervention Training"]</p>
[submit "Send"]
PS hope to be in the right place!
|
|
|
09-04-2012, 06:39 PM
|
#2
|
|
kern uʍop-ǝpısdn
Join Date: Aug 2012
Posts: 460
|
There are better support places for wordpress than here. But I do wordpress development so I will try to help. What version of wordpress are you running?
|
|
|
09-05-2012, 03:30 PM
|
#3
|
|
Junior Member
Join Date: Jul 2011
Posts: 6
|
Quote:
Originally Posted by skribe
There are better support places for wordpress than here. But I do wordpress development so I will try to help. What version of wordpress are you running?
|
I am using version 3.4.1
Thank you, I looked at wordpress forums and there were many...unanswered...threads about this. Can you suggest other places, too?
|
|
|
09-05-2012, 06:30 PM
|
#4
|
|
kern uʍop-ǝpısdn
Join Date: Aug 2012
Posts: 460
|
If you haven't already done so, you could try that specific plugins support forum here http://wordpress.org/support/plugin/contact-form-7
I tested your code in the plugin in wordpress 3.4.1 and it worked fine for me. When do you get the error? Upon clicking send?
One possibility is that you have another plugin that conflicting with it. If you are using other plugins, you might try deactivating some of them and see what happens.
|
|
|
09-06-2012, 09:50 PM
|
#5
|
|
Junior Member
Join Date: Jul 2011
Posts: 6
|
Quote:
Originally Posted by skribe
If you haven't already done so, you could try that specific plugins support forum here http://wordpress.org/support/plugin/contact-form-7
I tested your code in the plugin in wordpress 3.4.1 and it worked fine for me. When do you get the error? Upon clicking send?
One possibility is that you have another plugin that conflicting with it. If you are using other plugins, you might try deactivating some of them and see what happens.
|
Yes, once all info is entered into the page...I get a box upon submit stating 'validation error', to take a look at it and test it, you can see here:
*link removed*
Also, there are threads at the form 7's support regarding the issue...no useful answers there.
Last edited by Virgo Nightingale; 09-20-2012 at 07:22 PM..
|
|
|
09-08-2012, 06:29 AM
|
#6
|
|
kern uʍop-ǝpısdn
Join Date: Aug 2012
Posts: 460
|
Using a little elimination of a possible typing error ...
If you just put in one field and a submit button do you still get the validation error?
Try using html view rather than the rich text view in the wordpress editor.
|
|
|
09-08-2012, 06:49 PM
|
#7
|
|
Living the dream
Join Date: Jan 2011
Location: Somewhat south of Idaho
Posts: 2,945
|
Debugging WordPress is like picking apart a wet cat hairball looking for the irritant that caused the cat to vomit.
Even so, I looked at the source code and noticed that you've got a section of the form commented out. The comments prevent browsers from displaying that section of the form but won't necessarily hide it from the validation script. Several of the fields in this section are required, so I suspect the validation script is rejecting the page since those form fields remain empty when submitted.
I'd suggest either turning off their required status or removing the commented code from the page altogether. I'm not sure if this is the problem, but it's the first thing I'd try.
__________________
— I feel more like I do now than I did before I got here.
|
|
|
09-08-2012, 09:44 PM
|
#8
|
|
kern uʍop-ǝpısdn
Join Date: Aug 2012
Posts: 460
|
Good catch <b>! There are also a number of visible fields that don't say they are required, but are.
|
|
|
09-12-2012, 08:32 PM
|
#9
|
|
The Thai that designs
Join Date: Dec 2004
Location: Frisco, TX
Posts: 462
|
Ryuslayer, <b> hit the nail on the head. Even though the form fields are "hidden" on the page, they are still sent as part of the form, and they are what is causing the form to not validate upon sending. I used Firebug console to track the AJAX call, and it came back as follows:
"invalids":[{"into":"span.wpcf7-form-control-wrap.text-567","message":"Please fill the required field."},{"into":"span.wpcf7-form-control-wrap.menu-567","message":"Please fill the required field."},{"into":"span.wpcf7-form-control-wrap.text-568","message":"Please fill the required field."},{"into":"span.wpcf7-form-control-wrap.menu-568","message":"Please fill the required field."},{"into":"span.wpcf7-form-control-wrap.text-569","message":"Please fill the required field."},{"into":"span.wpcf7-form-control-wrap.menu-569","message":"Please fill the required field."
Looking at the fields that failed, those are the ones in your "hidden" form fields. Remove those and try again.
__________________
WordPress Designer and theme developer. KlongDesigns - helping bloggers and non-technical folks claim their space on the internet.
|
|
|
09-13-2012, 05:49 AM
|
#10
|
|
Senior Member
Join Date: Apr 2012
Posts: 799
|
If the fields are hiddent they may still send with the form, but if they are commented out they wouldn't I don't think. Getting rid of them will still give you an error because the validation script will still be expecting them and not validate correctly. You would have to remove the checks for them from the validation script.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 06:40 PM.
|
mediabistro creative network
GRAPHICS.COM NEWSLETTER
The weekly Graphics.com newsletter is a great way to stay up to date on what's new on the site and in the world of graphics. Subscribe »
|
|