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 Drop-down Menu: Not Pre-Populated | Event Espresso - Staging Server
We have two drop-down menus on our registration page: One is to select a price/payment option and another is the number of tickets (or, in our case stand up paddle boards).
We were wondering if it was possible to make it so that instead of a price or number of boards, the first option of each menu said, “Select an option”?
It isn’t easy not without code changes as the dropdowns are in the code.
I can give you 2 functions to drop into the Custom Files addons custom_functions.php (it will *not* work in the theme), which will add “Please select” to the ticket types dropdown and ticket number dropdown.
These functions are just the main ones used (they are pluggable if that means anything to you) with an extra line in each to show the Please select option.
One problem with this is that if they DONT select a ticket type, they can still register but it will cost them a million dollars/pounds/whatever.
Some jQuery will help here to block them from going forward if they dont accept it, but that would need to be added in by you.
Hope that helps and sorry it isn’t an easy answer.
Viewing 1 reply thread
The support post ‘Drop-down Menu: Not Pre-Populated’ 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.