Support

Home Forums Event Espresso Premium How to make option selection mandatory?

How to make option selection mandatory?

Posted: January 13, 2014 at 10:28 am

Viewing 3 reply threads


Michael Mansell

January 13, 2014 at 10:28 am

Hello, I have a current event registration in process on my website and I am selling tickets for multiple timeslots. There is a also a ticket option. My customers however are not seeing the timeslot selections and are not picking the time they want to come and so it is just defaulting to the first time slot. How can I make it so that my customers MUST select a time slot before they can proceed? And is there a way to have the drop down say, “Choose a time” rather than just defaulting to the first time slot?

https://whatzitworth.org/ticket/


Dean

January 14, 2014 at 3:50 am

Hi michale,

Currently the only way to do that is to add some javascript to insert a Please Select or similar option.

I have raised a ticket to look into the possibility of adding something similar in by default.


Michael Mansell

January 19, 2014 at 12:09 pm

Thank you! What .php file can I edit to add some text above the options dropdwon as a solution for now?


Dean

January 20, 2014 at 2:10 am

Hi,

If you copy both the registration_page.php and registration_page_display.php from event-espresso/templates over to wp-content/uploads/espresso/templates, it will mean they will not get over written on updates.

Then in the registration_page_display.php at the bottom add this:

<script>
jQuery('.event_prices select').prepend('<option selected="selected">PLEASE SELECT</option>');
</script>

This is a very basic jquery script that will add in a Please Select option. Note that it has no validation so a user can still proceed without selecting a price but they will get an error message on the next page.

Viewing 3 reply threads

The support post ‘How to make option selection 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