Posted: August 7, 2015 at 11:36 am
|
I am running EE3 and have required fields in my form. The problem is that I can submit the form without entering any data. I disabled all plugins and that behavior still persists. How can I troubleshoot and resolve this issue? |
Hi, Can you provide a link to the website where this is happening? What version of Event Espresso are you using? Can you also try switching to a default theme (e.g. Twenty Twelve, Twenty Thirteen, … Twenty Fifteen), and see if the problem persists? |
|
|
Here is a link to the page where this is happening: http://www.allspeedexpo.com/event-registration/?ee=1 I have not tried changing out the theme and testing as that will cause me to lose settings and information on this production website. I have been down the theme changing road many times and it rarely goes well. Please try and help me troubleshoot on the current active theme. Thanks! |
|
I am using the latest EE3 version. |
Hi there, This can happen if your theme is not using wp_footer(). Event Espresso and other plugins use wp_footer to load resources that they need to work correctly. If your theme is not using wp_footer, then the validation resources won’t be there. wp_footer is usually called through the footer.php theme template. Here is more information from the WP Codex: https://codex.wordpress.org/Function_Reference/wp_footer Thanks — |
|
|
Hi Lorenzo… When I view the source of the page, it is loading everything in just fine. In particular it is loading in the EE scripts in the footer of the page: <script type=’text/javascript’ src=’http://www.allspeedexpo.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.2.2′></script> Please go to my page and hit submit and you will see that EE is not firing the validation routines even though the scripts are in the page. |
|
I copied the site and move it to a non-production URL where I could swap out the theme and such. Event Espresso is working fine using the TwentyFifteen theme. So clearly my theme is getting in the way of the form validating. I do not see any obvious errors that might be causing this problem. Can you go to my site and load the event page and see if you find the problem? |
|
Hi, The first thing I would do is resolve the issue that jQuery is loading twice. Loading more than one version of jQuery can cause unexpected issues. This may or may not resolve the issue at hand but it will help by making sure the double load isn’t causing unexpected problems. Currently WP is (correctly) loading jQuery and your theme is also loading it. |
|
Can you identify and paste the lines for me that show the jquery loading twice? |
Hi there, Here is the view from Chrome Dev tools – http://take.ms/JzUe7 Possibly within footer.php or it could be included within functions.php |
|
|
Removing the duplicate jQuery load solved this problem. Thanks! |
|
Glad we could help! |
The support post ‘Required Fields Block not Working’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.