Events Made Easy › Forums › How do I … › YES / NO Registration
- This topic has 14 replies, 4 voices, and was last updated 7 years, 1 month ago by Franky.
-
AuthorPosts
-
Tue 26 Aug 2014 at 17:49 #52749AnonymousInactive
Hi,
I would like to know how could I do the following:
I’m using EME for a field hockey team, I would like to use events as a call for training and matches. We would like to know who will play or who wouldn’t so instead of a dropdown for SEATS i would like to set a couple of radio boxes, YES and NO. A player cant reserve more than 1 “seat” for himself so dropdown doesnt make sense player could say, YES, I will play or NO, I wont.
Could be a YES button and a NO button also, or any other solution.Doing this, everybody will know who will play and who will not (Important for coaches).
This is the URL to my events page: http://beta.cdhockey-lmusoz.com/eventos/
Thanks in advance,
David.Tue 26 Aug 2014 at 23:52 #52751FrankyKeymasterYou can use the seats with values 0 and 1 for that.
If you want, hide the seats field (use CSS or jquery for that), create your a custom form field (EME supports that too) and use jquery to update the value of the seats booked when they choose yes or no.Wed 27 Aug 2014 at 10:26 #52752AnonymousInactiveHi Franky,
Great!!, So:
1- I could use 0 to NO and 1 to YES
2- Hide dropdown with CSS
3- Create a new custom field, 2 radio buttons
4- Jquery script to modify dropdown field when select radio buttonThis way I could print the list of attendes. How could I print the list of the people that say NO?
Thanks,
D.Wed 27 Aug 2014 at 10:52 #52753FrankyKeymasterIn the CSV export and the print overview you should have all the info, including the number of seats booked and the answers to the custom field (if the custom field is created via EME).
Edit: also the shortcodes for the bookings or attendees (or the placeholders for those) also can show this info on a regular WP page.
Wed 3 Sep 2014 at 16:56 #52755AnonymousInactiveEverything working!
I’m trying to show a list of attendees with 0 reservations and other list with attendes with 1 reservation. Im using #_ATTENDEES and conditional tags, but I can’t find the way.
Right now, I get a list with all the attendees mixed.
This is a great plugin,
Thanks!
D.Wed 3 Sep 2014 at 17:57 #52756FrankyKeymasterI think there’s a way to do that: if you use the eme_attendees shortcode (just replace the #_ATTENDEES placeholder), like this:
[eme_attendees id=#_EVENTID]
then you can use a template for that shortcode (like described here: http://www.e-dynamics.be/wordpress/?cat=54 ).
In your case, by changing the template for the attendee list-entry to use a conditional tag, you could check for the value of #_ATTENDSPACES.
So, create a template that contains e.g. for those that have 1 reservation:[eme_if tag='#_ATTENDSPACES' value='1'] #_ATTENDNAME #_ATTENDEMAIL [/eme_if]
And call that template in the eme_attendees shortcode (replace xx with the id of the template just created):
[eme_attendees id=#_EVENTID template_id=xx]That should then give you the list of those that will attend (although: untested, I’d need to check if I evaluate conditionals inside that shortcode …)
Wed 3 Sep 2014 at 18:27 #52757AnonymousInactiveCool, it works!
Thank you very much,
D.Sat 21 Mar 2015 at 13:36 #53873AnonymousInactiveHi figu78,
I would like to do the same thing as you did. My situation is that I have multiple events where each person can only book one seat. So on my multievent booking form checkboxes would be much better than a 0/1 dropdown menu. Please could you let me know what you added to EME make this work. I am reasonably familiar with website coding but I don’t know jQuery and I cannot even find the relevant CSS that controls the forms layout in EME.
Any help appreciated.
Chris
Sat 21 Mar 2015 at 18:22 #53875FrankyKeymasterIn the current version you can set the option to “take attendance only” when creating/editing an event, that will then show a yes/no form.
For CSS: use firebug or firefox web developer.Sat 21 Mar 2015 at 20:53 #53878AnonymousInactiveFranky
Brilliant – having a YES/NO dropdown that defaults to NO is arguably better than a checkbox, so I will go with that. EME is an amazing piece of work, just started using it last week, excellent config option, hugely appreciated. Donation on its way.
Chris
Mon 23 Mar 2015 at 11:38 #53890AnonymousInactiveHi Chrisg,
If you need help, just send me a message, but I think you got it!
Cheers,
D.Fri 27 Oct 2017 at 18:04 #56799AnonymousInactiveHi Franky,
I am working on a project similar to the above and I would like registration to only require the yes/no field. Since everybody needs to be a registered user, is there a way to set the require fields automatically to the login name and email (I can hide fields)?
ThanksFri 27 Oct 2017 at 18:37 #56800FrankyKeymasterWhen defining the RSVP settings for the event, use the option “Require WP membership” and you’e good to go.
Fri 27 Oct 2017 at 19:21 #56803AnonymousInactiveWow. Fast reply but not what I was asking.
How do I set #_LASTNAME to the login last name and #_EMAIL to login email?
Or is the same variable?Thx
Fri 27 Oct 2017 at 23:19 #56805FrankyKeymasterYup.
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.