Support

Home Forums Event Espresso Premium Display single radio buttons as UNselected in ticket selector (continued)

Display single radio buttons as UNselected in ticket selector (continued)

Posted: May 10, 2017 at 7:42 am


Jerry

May 10, 2017 at 7:42 am

I guess this support topic was closed because I didn’t respond promptly (sorry, I had to put that project on the back burner), but I’d like to continue the discussion:

I don’t get how this would be a step backward in UI — isn’t it usually better to require an affirmative choice from the user?

Here’s an example of what I’m describing. I think it’s confusing to the user to see some of the options selected by default. You and I know that the default options will only be put in the cart if the user clicks REGISTER for that particular ticket table, but a user might reasonably assume that ALL selected options (pre-selected and user-selected) will be added to the cart.

If nothing can be done to fix this in EE4 core, I would love to get a bit more guidance on how to “add a bit of jQuery to the page and use the .prop method to uncheck [all the tickets].”

Thanks for your help!


Josh

  • Support Staff

May 10, 2017 at 10:40 am

This isn’t something that’s actually broken, and if we make the change you’re suggesting, we’ll be at odds with a majority of the userbase that values fewer clicks for the end user.

Here’s the documentation for the jQuery .prop method:
http://api.jquery.com/prop/#prop2

I can recommend using the WordPress wp_add_inline_script() function to add your custom script to the pages that have the ticket selector on them:

https://developer.wordpress.org/reference/functions/wp_add_inline_script/

The support post ‘Display single radio buttons as UNselected in ticket selector (continued)’ 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