Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How to make option selection mandatory? | Event Espresso - Staging Server

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

  • Support Staff

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

  • Support Staff

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 - Staging Server