Support

Home Forums Event Espresso Premium Conditional logic registration forms (questions based on ticket type)

Conditional logic registration forms (questions based on ticket type)

Posted: December 14, 2022 at 7:18 pm

Viewing 5 reply threads


charlie francus

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!
Charlie


Tony

  • Support Staff

December 15, 2022 at 5:53 am

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.

If not, are there any plugins or documentation that could explain how a workaround could be done to hide questions based on ticket type?

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.

If neither is possible – is the only way to collect additional information for a specific ticket type to create two separate events?

Correct, question are set on the event itself rather than tickets.


charlie francus

December 15, 2022 at 7:31 am

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
Charlie


Tony

  • Support Staff

December 15, 2022 at 7:46 am

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?

Yes, that’s correct.

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?

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/


charlie francus

December 16, 2022 at 7:42 am

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
Charlie


Tony

  • Support Staff

December 19, 2022 at 7:30 am

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.

Viewing 5 reply threads

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.

Event Espresso