Support

Home Forums Event Espresso Premium Required fields not working on Registration Form

Required fields not working on Registration Form

Posted: May 2, 2013 at 8:59 am


Paul Muszanskyj

May 2, 2013 at 8:59 am

Hi – I’ve set up the registration form, but when I test it its going through to the confirmation page, with blank required fields.

Here’s the page: http://www.empathydesign.co.uk/development/event-registration/?regevent_action=register&event_id=6     **moderated** please do not post usernames and passwords into a public forum

I would also like to know how to prevent a field from carrying through the confirmation page.

Can you advise?

Thanks


Josh

  • Support Staff

May 2, 2013 at 9:20 am

Hi Paul,

I checked and it looks like the your installation of Event Espresso is missing some files. Specifically the files that handle the form validation. You could try re-installing the plugin by downloading a fresh copy of Event Espresso from your account page, deactivating the old one, deleting it, then installing the new copy.

Your events will be there after you reinstall because they are stored in the database which is separate from the plugin files.

Once you have that sorted, let us know about the field you don’t want displayed on the confirmation page and we can take a look. There may be a way to hide it.


Paul Muszanskyj

May 2, 2013 at 9:46 am

Oh dear – thankyou very much, but one of your colleagues made some changes yesterday to some files because the calendar wasn’t displaying.  If I re-install the plugin will it lose those?  It took quite a time to sort out and I’d hate to have to go through it all again.


Josh

  • Support Staff

May 2, 2013 at 11:09 am

If you’re referring to this issue:

https://eventespresso.com/topic/no-results-169/#post-43948

The changes they would have made would have been to your WordPress theme, not the Event Espresso plugin. If you want to be extra careful, you can make a backup of the Event Espresso plugin folder before deleting anything.


Paul Muszanskyj

May 3, 2013 at 1:27 am

Thanks – will do.  Can you give me an example of the missing file so that I can check that its uploaded correctly when I re-install the plugin?


Paul Muszanskyj

May 3, 2013 at 3:14 am

Hi – I’ve reinstalled the plugin, but it seems to have affected the widgets page.  I’m now hardly seeing any of my widgets, and the section with the sidebars on the right of the page has completely disappeared.  It looked completely normal before reinstalling.

Can you please advise urgently?  I can’t imagine why reinstalling the plugin would have this effect but it evidently has.

Thanks


Paul Muszanskyj

May 3, 2013 at 3:19 am

Also – when I try to access Event Espresso, I’m getting “You do not have sufficient permissions to access this page.” – not had this happen before.


Josh

  • Support Staff

May 3, 2013 at 7:48 am

Hi Paul,

It looks to me like Event Espresso wasn’t reactivated after installing.


Paul Muszanskyj

May 3, 2013 at 11:14 am

Ah, sorry – you’re quite right.  Thought I’d done it but when I checked clearly haven’t.

The required field validation is now working, so looks like the re-installation has worked – thanks for that.

Can we now go back to my other query?  I had wanted to prevent the Terms & Conditions question appearing on the confirmation page – http://www.empathydesign.co.uk/development/event-registration/

Thanks again


Josh

  • Support Staff

May 3, 2013 at 3:05 pm

Hi Paul,

You can add this bit of CSS to the WP theme or use a plugin like Jetpack or the my custom CSS plugin to hide it:

#event_espresso_attendee_verify_questions tr:nth-of-type(5) {display:none}

Basically what it will do is tell the browser: If it’s a table that displays the answers to Event Espresso registration form questions, don’t display the 5th row.


Paul Muszanskyj

May 6, 2013 at 3:58 am

Thats really good – I didn’t know you could do that – working perfectly.

However, I’m having problems with the label length of the same field on the registration form – its constrained to the label widths of the rest of the fields and so goes onto 3 lines.  It obviously needs to be on one line only.  I can see from the source code that this should be possible but can’t work out how to do it.

Can you help?

Thanks!


Josh

  • Support Staff

May 6, 2013 at 1:34 pm

Hi Paul,

If you look at all the above questions, you’ll see that the labels all line up nicely, that’s because the labels are given a specific width.

You can adjust the multiple checkbox label and where the box displays with something like this:

label[for=MULTIPLE_12] {
width: 100%;
}

.options-list-check.event_form_field {
margin-left: 100px;
margin-top: 0px;
}


Paul Muszanskyj

May 7, 2013 at 3:58 am

Thanks – I understand how to change the position of the check box, and that’s fine, but when I paste in your code the label is still being constrained to the width of the other labels (ie three lines instead of one) – have I done something wrong?  Does something else need tweaking?


Josh

  • Support Staff

May 7, 2013 at 7:39 am

One thing to know about CSS is that order and specificity can affect whether a rule gets applied or not.

In this case, it’s the order, because there are style rules setting a width of 150px *after* line 113 of style.css (where you placed your custom style).

You could try moving the custom style to the end of a stylesheet that loads later, so it loads later, or make the custom style rule more specific like this:

#event-reg-form-groups label[for=MULTIPLE_12] {
width: 100%;
}

Adding the ID as shown above will make the rule more specific.

One other option you have and could use is the !important rule, so the above rule could be:

label[for=MULTIPLE_12] {
width: 100%!important;
}


Paul Muszanskyj

May 8, 2013 at 2:44 am

Great – thanks.  Using the !important tag didn’t work, which is strange, but adding in the id to nail the label did, very glad to have got this sorted.

The support post ‘Required fields not working on Registration Form’ 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