Support

Home Forums Wait List Manager Add-on Pre-fill the waitlist form using user metadata

Pre-fill the waitlist form using user metadata

Posted: December 26, 2017 at 1:01 am


Daniel

December 26, 2017 at 1:01 am

Hi,
I wonder if it’s possible to pre-fill the waitlist form using current user’s name and email address, and automatically set Ticket Quantity to 1. I want to use it for a “member-only” website where users have to sign in before registering for any event, and can only buy one ticket for herself/himself.
Any suggestions would be greatly appreciated!!
waitlist form

/daniel


Josh

  • Support Staff

December 26, 2017 at 1:09 pm

Hi Daniel,

You can make it so it automatically sets Ticket Quantity to 1 by setting the “Maximum number of tickets allowed per order for this event:” option to 1.

With regards to pre-filling the waitlist form if the WP Users Integration add-on is activated and the user is logged in, that’s on the to-do list and may be added before or after the Wait List add-on is officially released.


Daniel

December 26, 2017 at 7:58 pm

Thanks, Josh! That was very helpful.
Is it possible to make changes to the Waitlist form this way: make a copy of the file WaitListForm.php, place it in my active theme folder, and let it override the default one? Or do I need to directly modify the original file in eea-wait-lists-pr > domain > services > forms ?

/daniel


Josh

  • Support Staff

December 27, 2017 at 8:46 am

Neither of those options are valid. May I ask what exactly are you looking to make changes to?


Daniel

December 28, 2017 at 7:13 am

@josh: Thanks for following up!
I use EE as a registration system for LearnDash courses on my member-only website. And I want to make the following changes:
– Name and Email Address should be pre-filled with current user’s display name and email address.
– Preferred options: there will be only 1 ticket (Course Registration)
– Ticket quantity: always 1
So actually, users don’t need to enter anything in any of the four input fields. I guess ideally I want to hide all the labels and input fields (especially Preferred Option and Number of Ticket), and just pass the desired values (as mentioned above) to the next step.
Does that sound crazy enough?
/daniel


Josh

  • Support Staff

December 28, 2017 at 8:20 am

Hi Daniel,

In this case, changes to the template will not be necessary because:

1) The initial release is planned to have support for WP User Integration so that if the user is logged in, those fields will already be filled in.
2) If you have one ticket option, then you can hide that field with CSS. No need to alter core code.
3) If you set “Maximum number of tickets allowed per order for this event: ” to 1 in the event editor, then the Ticket Quantity input will always be set to 1. Again, no need to alter core code, and if you did remove these items from the core code, you’ll break the form and it will no longer submit those values.


Garth

  • Support Staff

July 25, 2018 at 12:46 pm

I wanted to let you know that the official Event Espresso 4 wait list add-on is now available: https://eventespresso.com/2018/07/wait-list-manager-event-espresso-4/

The support post ‘Pre-fill the waitlist form using user metadata’ 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