Support

Home Forums Event Espresso Premium required fields not acting as required

required fields not acting as required

Posted: December 4, 2013 at 2:46 am


brent verco

December 4, 2013 at 2:46 am

HI guys.

I am using event esspresso to manage my seminar registration on my website. I have noticed that despite listing fields as required in my question manager it is still possible to enroll and register with little or no information entered in required fields.
http://www.amsn.com.au/seminars/

any ideas ?


Dean

December 4, 2013 at 4:29 am

Hi Brent,

The validation is done via jQuery (JavaScript) so the usual reason for it failing is a javascript error, but your site doesn’t have any errors which is strange.

Can you test something for me please? Turn off the Connections plugin and see if the validation works then.

The Connections plugin is loading what I think is a different script altogether but with the same name so it’s over ruling ours, but I can’t be sure currently.


brent verco

December 4, 2013 at 4:36 am

Hi Dean

I will try that now for you πŸ™‚


brent verco

December 4, 2013 at 4:39 am

Well picked πŸ™‚ I turned of the connections plugin and the error went away. got any ideas about what to do from here ?


Dean

December 4, 2013 at 5:07 am

Hey,

OK, well now we know that it is definitely that.

The script the plugin is using is conflicting with the one we are using, and looking at it closer it’s down to the version (it does look like the same script, just a different version).

I can put in a request fro us to update this script, but I cannot say when this will occur.


brent verco

December 4, 2013 at 5:12 am

No worries,
thanks for your time.


Dean

December 4, 2013 at 5:25 am

I just did some further tests on this and yes it looks like that version breaks the validation, I will raise the ticket priority on this.


brent verco

December 4, 2013 at 1:25 pm

Dean that would be great. My business partner is quite concerned about this issue as it would allow people to enroll with agreeing to our terms and conditions or even entering an email adress which would break down our enrollment system.

Hoping to go live with the site over the next few weeks so really hope you can weave your majic here.

Your a legend. this is the best level of help I have ever received on a wordpress plugin. You guys rock.


Josh

  • Support Staff

December 4, 2013 at 4:41 pm

Hi Brent,

I’m looking into this further and I’m afraid there may be more to this than the second script loading. When I view the source of the registration page, it appears that neither of Event Espresso’s validation scripts are loading on your registration pages. Has anything been modified to prevent Event Espresso’s scripts from loading elsewhere?

Once that issue gets figured out, and there are still issues with validation for the form fields, this little code snippet will remove the connection plugin’s validation scripts from Event Espresso’s pages (and no where else).

// remove Connection's copy of the jQuery.validate.js script 
// on Event Espresso pages
add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 11 );
 
function my_deregister_javascript() {
	global $load_espresso_scripts;
    if ($load_espresso_scripts) {
        wp_deregister_script( 'jquery-validate' );
    }
}

You can add the above script to a site specific snippet plugin to make that happen:

http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/


brent verco

December 4, 2013 at 7:52 pm

Hi Josh thanks for your reply.

I’m just a little confused. Are you suggesting that we need to solve the first problem of the script not loading before we add the snippet of code to page.
I dont think anything as been modified. I think I might leave making any code changes to Naumeer my web developer. He will be in touch.
cheers mate.
I hope this can be sorted as using the connections plugin and event essprosso was going to be the backbone of our website. There really is not much else on the market in the contact form plugins that fits our needs.


Josh

  • Support Staff

December 4, 2013 at 8:01 pm

You can try the snippet first. What it will do is make sure the conflicting script from Connections does not load on the Event Espresso pages. It doesn’t need to be loaded there anyway.

You might also mention to your developer that there really should be something done about the number of JavaScript files loaded on each page load. Depending on the page, there are between 45 and 55 script files loaded. There are ways to get this down to two by compressing them together, which will really speed up the page loads.


brent verco

December 5, 2013 at 12:08 am

We have created plugin and activated it please check http://www.amsn.com.au/seminars/?ee=1 and let us know if its fine


Dean

December 5, 2013 at 1:13 am

That seems to be working now.


brent verco

December 5, 2013 at 1:51 am

Yes

naumeer just emailed me. He added the code as you instructed and it seemed to do the trick. thanks all for job well done πŸ™‚

The support post ‘required fields not acting as required’ 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