Support

Home Forums Event Espresso Premium Required fields do not work

Required fields do not work

Posted: August 8, 2017 at 6:39 am

Viewing 14 reply threads


Maccabee Levine

August 8, 2017 at 6:39 am

I am about to deploy a registration site and just noticed that the required fields do not work. I can just push the submit button without entering any information.

http://quantum.esu.edu/advancement/


Josh

  • Support Staff

August 8, 2017 at 9:52 am

Hi there,

The problem is actually being caused by there being 2 copies (one current and one old version) of the jQuery JavaScript library there. Here’s a screenshot that outlines the current one in green and the old one in red:

https://www.evernote.com/l/AATnB10CZkxHMoIHo2Lh-bbx8pIIj00I91w

There’s likely another WordPress plugin that’s adding the old copy of the library. The way forward will be to deactivate the other plugins the site to find out which one is adding the old library.


Maccabee Levine

August 8, 2017 at 11:00 am

Josh, I disabled all of the plugins with no effect.


Josh

  • Support Staff

August 8, 2017 at 11:07 am

Then it may be your active WordPress theme is adding the outdated copy of jQuery. You can check the theme’s functions.php file to see if it does something like this:

wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', false, '1.7.1');
wp_enqueue_script('jquery');

Any code like the above should be removed.


Maccabee Levine

August 8, 2017 at 11:14 am

No mention of jquery in the function.php file.


Josh

  • Support Staff

August 8, 2017 at 11:18 am

Hi there,

Something on your site is adding an older copy of jQuery, and it’s not Event Espresso. I’m out of guesses for what’s adding it because usually it’s another plugin or theme script. Is there a place where I can download the same theme that’s on your site?


Maccabee Levine

August 8, 2017 at 11:21 am

It is a paid theme. How can I send you a copy of what I have.


Josh

  • Support Staff

August 8, 2017 at 11:32 am

A filesharing service.


Maccabee Levine

August 8, 2017 at 11:38 am

I am using dropbox. What email do I use to invite you?


Josh

  • Support Staff

August 8, 2017 at 11:45 am

A link to a zip file will work best.


Maccabee Levine

August 9, 2017 at 7:20 am

Dropbox requires an email address in order to share.


Tony

  • Support Staff

August 9, 2017 at 7:39 am

Dropbox does not require an email address in order to share files.

Click share on the file/folder – http://take.ms/lneu4

Click create link, then copy link – http://take.ms/8kT98

That link can then be used to share the file with anyone unless you specifically change that within the settings.


Maccabee Levine

August 9, 2017 at 8:23 am

https://www.dropbox.com/s/wlougzsokxoo9i4/canvas.rar?dl=0


Josh

  • Support Staff

August 9, 2017 at 8:29 am

Thank you.

In the theme you sent, in the footer.php file, starting on line 41:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<link rel="stylesheet" href="http://www4.esu.edu/js/flexslider_home/flexslider.css">
<script src="http://www4.esu.edu/js/flexslider_home/jquery.flexslider-fixed.min.js"></script>

Line 41 is what’s causing the breakage. Ideally you should be using the
wp_enqueue_scripts hook to load those scripts and styles, but at the very least this code must be removed:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>


Maccabee Levine

August 10, 2017 at 6:32 am

That did it Josh, thank you for your help.

Viewing 14 reply threads

The support post ‘Required fields do not work’ 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