Events Made Easy › Forums › How do I … › enable multiple custom fields on form then have results populate dropdown
- This topic has 8 replies, 2 voices, and was last updated 4 years, 4 months ago by Anonymous.
-
AuthorPosts
-
Fri 3 Jul 2020 at 15:30 #61414AnonymousInactive
Scenario:
User visits event with rsvp form. The form has 3 fields for “bike type”. If the user has already entered something in one of those 3, I’d like a dropdown to appear on the rsvp page. If nothing entered, the ability to enter it.
I get adding special fields and conditional stuff…I’m just trying to figure out how to get a dropdown list of these fields.
Thanks 🙂
Fri 3 Jul 2020 at 17:01 #61415FrankyKeymasterI’m not entirely sure what you mean, but maybe you need “Dynamic data”? See the bottom section of this page: https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-6-registration-form-fields/
Fri 3 Jul 2020 at 18:11 #61416AnonymousInactiveNot really, but kinda?
So on the registration form, I have 3 fields
Bike 1
Bike 2
Bike 3On the RSVP form, I want those fields to show up if empty (that part is easy). If any one of those 3, or even just Bike 1, has data, I’d like a dropdown to appear with the values of Bike 1, Bike2, and Bike 3. The logic of getting something to appear is easy — its the populating a dropdown with the values in those fields that is throwing me for a loop.
Thanks
Fri 3 Jul 2020 at 18:22 #61417FrankyKeymasterWell, I still don’t understand it 🙂 Based on your description, the way I understand is that you have these 3 fields, “Bike 1”, “Bike 2” and “Bike 3” and you want their value to be used in a dropdown, even though people are already entering that data? I’m guessing you want extra info concerning each “bike” based on the number of bikes? Then I’d say to first ask the number of bikes (in a dropdown) and use that to show dynamic data per bike to ask for more info (and that’s what Dynamic Data does for you).
Fri 3 Jul 2020 at 18:24 #61418AnonymousInactive🙂
Right. The dropdown would be used for them to select a bike they have already entered during registration (or on their profile) to be used to pull data down the same way the fields autopopulate when logged in.
If they have not already entered one, they would have the opportunity to during RSVP. The actual number is irrelevant. I just have 3 so that if someone has 3 bikes to choose from in their ‘garage’ they can select which one they are bringing to the event.
Fri 3 Jul 2020 at 18:40 #61419FrankyKeymasterWell, in EME I would solve it the way I suggested then (and make sure the fields are of type “people” so the info is stored per person in EME and not per booking.
However EME currently doesn’t re-use people-info for custom fields in the front end yet, this fixes that: https://plugins.trac.wordpress.org/changeset/2334974/Fri 3 Jul 2020 at 18:44 #61420AnonymousInactivePerfect. Thanks Franky
Fri 3 Jul 2020 at 18:46 #61421FrankyKeymasterLet me know how it goes. As a demo, check out https://www.bonheidensehondenvrienden.be/lidmaatschap-bhv/ (change the field “Aantal honden”)
Fri 3 Jul 2020 at 18:48 #61422AnonymousInactiveExactly that, but in reverse 🙂 I think I can get it from there. I’ll be sure to send you the whole project when it’s done so you can take a look 🙂
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.