Support

Home Forums Event Espresso Premium required fields not validating on first submit

required fields not validating on first submit

Posted: August 12, 2012 at 12:00 pm

Viewing 10 reply threads


StretchIT

August 12, 2012 at 12:00 pm

Hello,

My registration form does not run validation on first submit, it allows blank form to be submitted to confirm page, if form is updated there it then validates.

I am struggling to find the difference between the two pages.

I have checked https://eventespresso.com/wiki/troubleshooting-event-espresso/#registration but firebug and chrome and IE inspectors show no errors in the console.
M

My theme was calling for old jquery version in head which was removed as it was being included twice (second time was for 1.7x). Adjusting that made no difference.

no paragraph tags were noted in source code (theme does not allow for [raw]).


Sidney Harrell

August 12, 2012 at 5:29 pm

Can you do me a favor and substitute in the non compressed version of the jquery validation plugin. You can download it from here:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
download the zip, extract it, and copy the file jquery.validate.js into http://www.raisingthebarr.com.au/devwp/wp-content/plugins/event-espresso/scripts/
Then rename the jquery.validate.min.js that is in there to jquery.validate.min.js.bak and rename the jquery.validate.js that you copied in there to jquery.validate.min.js.
That is the easiest way to swap in the non-compressed version so that we can set a break point in it and figure out why it’s not validating.


StretchIT

August 12, 2012 at 7:19 pm

I have substituted the file with the uncompressed file as above. How do I set a break point?


Josh

  • Support Staff

August 13, 2012 at 12:34 pm

What is the URL to the registration page?


StretchIT

August 14, 2012 at 4:21 am

http://www.raisingthebarr.com.au/devwp/event-registration/?ee=1


StretchIT

August 14, 2012 at 7:09 am

client wanted it live regardless, so now its moved to the root.

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


Josh

  • Support Staff

August 14, 2012 at 2:36 pm

It looks like the registration_page_display.php template has been modified, and there are closing paragraph tags in places where they shouldn’t be. One example would be right before the recaptcha message:

<br /></p>Anti-Spam Measure: Please enter the following phrase

Can you try loading up the registration page using a stock registration_page_display.php template?


StretchIT

August 14, 2012 at 8:03 pm

Once that page is submitted validation does not occur, but if you hit submit again, the validation works.

recaptcha was activated after validation was discovered to have a bug. (I have fixed the closing p tag regardless) client doesn’t want recaptcha as they find it to difficult.

the registration form is displayed using the shortcode so to display it with default template would have two occurrences of the registration form on the one page.

  • This reply was modified 11 years, 11 months ago by StretchIT.


Josh

  • Support Staff

August 14, 2012 at 8:46 pm

It doesn’t sound like these registration pages are set up properly. It shouldn’t be necessary (and isn’t recommended) to include a registration form shortcode on an event page where [ESPRESSO_EVENTS] is being used. I noticed that on the main registration page (before heading to a specific event) the right side column has the “this event is not longer expired message”.


StretchIT

August 14, 2012 at 8:54 pm

The registration page is only linked to from an event, events are listed: http://www.raisingthebarr.com.au/workshops/

I quickly allowed the registration form to display without shortcode, that validates but the right hand side form did not, if you submit, it throws captcha error (providing captcha is not entered) and then the form will run validation correctly.


StretchIT

August 14, 2012 at 9:15 pm

You pointed me in right direction, thank you.

As the shortcode was being used, the positioning of the form open tag was nested in a place that confused everything.

I moved the form open tag to where the shortcode = true and voila, it validates.

thanks for your efforts and tips, they got me there!

Viewing 10 reply threads

The support post ‘required fields not validating on first submit’ 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