Support

Home Forums Event Espresso Premium Registration Form Not Working / Validation being ignore

Registration Form Not Working / Validation being ignore

Posted: January 29, 2014 at 11:12 am


David Waterman

January 29, 2014 at 11:12 am

Hi,

I am having an issue with event espresso in my site.

http://events.ktbenefits.info/event-registration/?ee=25

If you click on RSVP Yes (submit) it takes you to the thank you page right away without validating all the fields that are required.

Any ideas on how I can solve this issue?

Any help will be appreciated.

Thanks.


Josh

  • Support Staff

January 29, 2014 at 11:56 am

Hi David,

I checked and there is some JavaScript that’s being injected to the very top of the webpage. It looks like this:

https://gist.github.com/lorenzocaum/f84897c2055282196ef4b3db314d5ded

Basically, it’s adding a 2nd copy of the jQuery library to the page, and its inline scripts aren’t written to be compatible with the way WordPress loads jQuery into no-conflict mode. Can you contact the developer that added this and ask them to remove or fix this?


David Waterman

January 29, 2014 at 12:55 pm

Hi,

The code was removed and it does not seem to work, I can still register without any data in the required field.

Any other ideas?


Josh

  • Support Staff

January 29, 2014 at 1:31 pm

Hi there,

The code is still there that’s adding the second jQuery library. Here is a screenshot.


David Waterman

January 29, 2014 at 2:44 pm

Hi,

This did not work – I tried that earlier.

Any other ideas?


Josh

  • Support Staff

January 29, 2014 at 3:34 pm

Did someone modify the contents of the built in jQuery library JS in wp-includes/js/jquery.js?

If you view source, you’ll see these two lines were added at the end of the file:

link here:

http://events.ktbenefits.info/wp-includes/js/jquery/jquery.js?ver=1.8.3

added code:

/*jQuery.noConflict();*/
$ = jQuery.noConflict(true);

I think this may be causing the errors I’m seeing in the console:

https://www.evernote.com/shard/s4/sh/869b3c1a-46ee-4d71-8d09-1661462a238a/8f56cc7eea4238453287ec5fe96f5a60


David Waterman

January 30, 2014 at 8:23 am

Hi Josh,

The wp-includes/js/jquery.js file is now back to how it was – we are still having the same issue here.

Try it again and give me your thoughts on this.

Thanks.


Josh

  • Support Staff

January 30, 2014 at 9:00 am

Hi David,

I ran you page through an html validator and it reports there is a html table markup that’s breaking the HTML on the page.

Please see the last two errors in the validator:

http://is.gd/WBqGGt

Error Line 414, Column 43: Start tag div seen in table.

I removed the html table in this fiddle markup and the validation now works:

http://jsfiddle.net/joshfeck/4jE8P/

You can test it without submitting a registration by typing a few characters into the email field then click outside the email field input.

If you remove the invalid HTML table markup that was added to Event Espresso’s registration_page_display.php template that will fix your issue. You might consider using CSS to style the event information to look like a table.


David Waterman

January 30, 2014 at 10:41 am

Hi Josh,

I fixed the issue.

My problem was that the div and the form were starting inside the table and it was ending after the table, so I took the div and the form tags and put it before my table and it works perfectly. Basically I now have the table inside of the form instead of the form inside of the table.

Thanks for the help.

The support post ‘Registration Form Not Working / Validation being ignore’ 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