Support

Home Forums Event Espresso Premium Required Fields Block not Working

Required Fields Block not Working

Posted: August 7, 2015 at 11:36 am

Viewing 11 reply threads


Shoutcloud

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?


Garth

  • Support Staff

August 7, 2015 at 12:10 pm

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?


Shoutcloud

August 7, 2015 at 1:50 pm

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!


Shoutcloud

August 7, 2015 at 1:50 pm

I am using the latest EE3 version.


Lorenzo Orlando Caum

  • Support Staff

August 7, 2015 at 3:00 pm

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


Lorenzo


Shoutcloud

August 8, 2015 at 10:51 am

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&gt;
<script type=’text/javascript’ src=’http://www.allspeedexpo.com/wp-content/plugins/event-espresso/scripts/reCopy.js?ver=1.1.0′></script&gt;
<script type=’text/javascript’ src=’http://www.allspeedexpo.com/wp-content/plugins/event-espresso/scripts/jquery.validate.min.js?ver=1.8.1′></script&gt;
<script type=’text/javascript’ src=’http://www.allspeedexpo.com/wp-content/plugins/event-espresso/scripts/validation.js?ver=3.1.37.4.P’></script&gt;
<script type=’text/javascript’ src=’http://www.allspeedexpo.com/wp-content/plugins/event-espresso/scripts/jquery.pajinate.min.js?ver=3.1.37.4.P’></script&gt;

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.


Shoutcloud

August 8, 2015 at 4:57 pm

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?

http://www.allspeedexpo.com/event-registration/?ee=1


Dean

August 10, 2015 at 4:01 am

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.


Shoutcloud

August 12, 2015 at 7:19 am

Can you identify and paste the lines for me that show the jquery loading twice?


Tony

  • Support Staff

August 12, 2015 at 7:50 am

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


Shoutcloud

August 13, 2015 at 7:17 am

Removing the duplicate jQuery load solved this problem.

Thanks!


Dean

August 14, 2015 at 4:41 am

Glad we could help!

Viewing 11 reply threads

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.

Event Espresso