Support

Home Forums Event Espresso Premium Mandatory Fields Are Not Mandatory?

Mandatory Fields Are Not Mandatory?

Posted: March 20, 2013 at 8:58 pm


ashley haley

March 20, 2013 at 8:58 pm

When you register for a class and don’t fill out a mandatory field the sign up goes through regardless.

For example if you go to this link: http://www.oneloveyoga-studio.com/event/classes/register?ee=860, and just hit submit it will take you to the confirmation page. So, currently the mandatory fields are not holding a person back from registering when they do not enter all of the required data.

What steps do I need to take to fix this?

WP: 3.5.1
EE: 3.1.30.7P


Jonathan Wilson

March 21, 2013 at 10:38 am

Hi Ashley,

Looking at your page in the Google Web Dev tools, you have an error in the validation.js file.

Screenshot: http://awesomescreenshot.com/07d12q2d8d

I’m assuming this is caused by a plugin conflict. To try to rule out any plugin conflicts, deactivate all non Event Espresso plugins and test to see if the issue is still occurring. If it is not, then we know it is a problem with another plugin. You can then find out which plugin it is by reactivating each plugin individually and testing to see if the problem starts happening after the activation. When it occurs after activating a plugin, then we know this is the culprit.


ashley haley

March 21, 2013 at 10:44 am

Johnathan,
Thanks for getting back to me I will take these steps later and be in touch.


Jonathan Wilson

March 21, 2013 at 11:01 am

Great. Let us know if you have any issues or questions.


ashley haley

March 21, 2013 at 9:51 pm

Ok, I disabled every other plugin that I have, and the mandatory fields still didn’t stop an entry from going through that didn’t have those fields filled out.

Do you have something that I should try next?


Dean

March 22, 2013 at 5:51 am

This is a tough one, as it appears that it is coming from the Event Espresso file, but test sites don’t have this issue.

Have you tried temporarily swapping the theme to a default theme like TwentyTwelve and testing to see if that makes a difference?


ashley haley

March 22, 2013 at 10:03 am

Dean, I just switched the theme to TwentyTwelve and it seemed to work fine. I suppose my issue then is my theme? Is there anyway to narrow down where the issue is coming from in there?


Dean

March 22, 2013 at 10:24 am

Hi,

Well actually yes, I took a look at your theme whilst dealing with another thread of yours, and there is a simple explanation.

In your themes functions.php is this

function my_deregister_javascript() {
    if (!is_admin()) {
        wp_deregister_script( 'jquery.validate.js' );
    }
}

what it is saying is, if you are not in the admin screens and are on the website, stop the validation jquery from working.

Removing that code will fix the validation.


ashley haley

March 22, 2013 at 12:27 pm

That seemed to clear the issue. Thanks very much for the help, time, and patience.


Dean

March 25, 2013 at 12:42 am

You’re welcome!


Amy Decker

March 27, 2013 at 5:27 pm

Ok, my turn. Please Help.
Exact same problem
Here’s the link to one of the registration forms. I’ve narrowed it down to a theme issue. (wordpress-bootstrap)
I found the following in functions.php but commenting out the deregister line didn’t fix the problem (just broke a bunch of other stuff)

wp_deregister_script('jquery'); // initiate the function  
wp_register_script('jquery', get_template_directory_uri().'/library/js/libs/jquery-1.7.1.min.js', false, '1.7.1');


Josh

  • Support Staff

March 27, 2013 at 5:40 pm

Hi Amy,

You can try commenting out the entire code block you’ve posted above. WordPress has its own version of jQuery that it loads up.

Then, to address the specific error on the reg page, the jQuery functions in scripts.js, and possibly elsewhere should be wrapped in no-conflict wrappers. Please see this guide for more info:

https://eventespresso.com/2012/08/using-jquery-in-safe-mode/

In the future, please start a new thread instead of posting to an existing topic. This topic had been marked as resolved and we don’t get notifications when new comments get posted to resolved threads, I just happened to catch this one.

The support post ‘Mandatory Fields Are Not Mandatory?’ 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