Posted: February 7, 2023 at 2:50 pm
Hello EE team, I would like to have an admin-only question field that will populate a number which is auto-incremented. This is for a parade where each participant will wear a badge number, similar to a marathon race (with various categories). The starting number should be based on a category that a registrant selects on the frontend registration form. Then I want the ability for that number to be shown on the email to the registrant and hence on the ticket (as a badge) via the ticketing add-on (so the registrant can print it themselves). The whole purpose of this is for the organizer not having to print the badges. After reading through the forum, I understand I can create an admin-only field and then edit it manually one by one in the admin after the fact. (In that case, can I send the ticket via the ticketing add-on later?). Though imagine doing that for 200-400 registrants, too time consuming. Or do you already have an edit feature for the admin only field in list view as batch edit? So how can I go about this customization? |
|
By the way, from reading here https://eventespresso.com/rich-features/customizable-ticket-quote/, currently the ticketing add-on will create links to a PDF file of the ticket that the registrant can print out, correct? |
|
Hi there, We don’t have an auto-incrementing feature like this built into Event Espresso so the option to manually add these values using an admin question would be the only way to do this that is built directly within Event Espresso itself.
This is correct and yes, the answer to admin-only questions can be included in the ticket using a shortcode.
No, we don’t have a batch method for editing questions. If you are comfortable with PHP then, it would be possible to create a snippet that hooked into when the registration status was set to Approved and set the answer to the above question via code. The time invested in doing may be less than doing all of the above manually and could then be reused.
EE4 does not send a ticket PDF, it sends a link which opens up on the site and displays the ticket directly within the browser. The user can print the page using the browser if needed but there is no ‘Ticket PDF’ to download at this time. |
|
Hi Tony, thank you for your answers and insights. |
|
Yes, but it will need a little bit of admin work. The ticket link is sent in a ‘ticket notice’ email which by default will automatically trigger when the registration approved message sends and whilst we don’t have an ‘option’ to not send it, you can disable it using a custom message template. Go to Event Espresso -> Messages -> Default Message Templates. Find the ‘Ticket Notice’ message type and click the ‘Create Custom’ button. Thats going to create a custom message template and take you to edit it directly. Give it a meaningful name (for this I recommend including ‘Disabled’ in the name so you know what it is for). Hit save (If any of the fields complain about being required, just add a space to the field and save). Make sure the toggle switch at the top of the page is grey (disabled) and not green (enabled), just click it to switch. Once saved, select ‘Registrant’ in the context switcher dropdown at the top of the page and click ‘Switch Recipient’. Now make sure the toggle switch is disabled again. What you’ve done there is create a custom message type where all of the registrants are disabled, so it basically does nothing. Now edit the event itself and in the Notifications section, find the Ticket Notice message type and set it to use that custom message template that has been disabled. That notice is now disabled, when you want to trigger it later you select a the global template (or another custom template that is not disabled) and use the ‘Resend ticket notice’ button from the registration list to send the notice. |
|
Thank you for all the great advice. |
|
We don’t dynamically display shortcodes like that in the message system as you could end up with hundreds of shortcodes for your questions, so we display the shortcode so you know the format and you can pull in any question using that. You can use The question text must match exactly, so if your question is text is ‘Do you Like ChEeSe?’ the shortcode would be:
It is the same as the above but will always pull the answer from the primary registrant of the group. Say you have a group of 5 tickets and used the above shortcode it will pull the sam value from the 1 of 5 registrants for all of the tickets.
No, leave the star in place, that’s how the code determines where the shortcode ends and your question text begins.
If you use the So, we need a way for you to output the question itself ( You only use that section if you want to output all of the question assigned to a registrant, now specific ones (thats what the above shortcode is for) |
|
Thank you, that works great. I ran into another issue. In the email I have the following shortcode for the ticket link: When a registrant buys 2 or more tickets, it prints them both/all (even though I have html only for one ticket), and the problem is that the 2nd and subsequent tickets don’t have any custom questions. I really want the user to print just the first ticket of each registration, same when you click on ticket in the admin. How can that be done? I’ve already tried the shortcode [TXN_TICKETS_URL], didn’t fix it either. |
|
This reply has been marked as private. | |
The Try |
|
Thanks, Tony, that shortcode works. |
|
Awesome 🙂 |
|
The support post ‘Admin-only question auto number based on category selected by user’ 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.