Posted: December 14, 2022 at 7:18 pm
Greetings – I need to collect additional information about attendees that select a specific ticket, and only need the basics for the other tickets for an event. I’ve found quite a few old threads on this topic but nothing within the last 12 months. Did this happen to make it to production? If not, are there any plugins or documentation that could explain how a workaround could be done to hide questions based on ticket type? If neither is possible – is the only way to collect additional information for a specific ticket type to create two separate events? I’d really like to avoid forcing people to go through the checkout process multiple times as it would undoubtably result in abandoned tickets and lost revenue. Thanks in advance! |
|
Hi there, No, conditional logic within the registration forms is not a feature we currently support within Event Espresso. We do have it on our roadmap for the future but have been working on other areas of the plugin.
Right now, the only way to do it without creating 2 separate events would be to use JavaScript to selectively hide the question based on the current ticket. We don’t have documentation on this as its not something we currently support, but if you are comfortable with JavaScript there is a quick example of this here: https://gist.github.com/joshfeck/c553d579962480410be45f51df074144 Thats basically using the classes we add to the registration form to hide a question based on the ID’s of both the ticket and the question, you would need to expand further on that example for you use case.
Correct, question are set on the event itself rather than tickets. |
|
Thanks Tony! Am I correct in assuming that if we use the hide question method, we cannot make the questions required, otherwise it would be impossible for those with the question hidden to checkout? That example looks fairly straight forward. Where would I put that file in order for it to work, or does the code need to be added to an existing file? Thanks again |
|
Yes, that’s correct.
You never want to edit any of the existing plugin files if that’s what you mean, any changes made would be wiped out when the plugin is updated. You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
Thanks again Tony. Since the fields are mandatory, hiding the questions won’t work for this application. I think the only path forward that I have is to have 2 separate events. I started setting this up last night and discovered with the cart feature there seems to be a way to make a relatively seamless checkout process for customers that want both types of tickets/events. Is there a way to combine the ticket types into a single ticket selector on a page rather than having two different ticket selector frames? Thanks again |
|
Hi Charlie, I checked into this and no not currently, we’ve previously discussed the possibility of having a ticket selector which allows you to specific the ticket ID’s in the shortcode but it’s not something implemented within Event Espresso at this time. |
|
The support post ‘Conditional logic registration forms (questions based on ticket type)’ 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.