Group registration: show custom field once

  • Claude D'Aoust
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 11 months ago #61839 by Claude D'Aoust
Group registration: show custom field once was created by Claude D'Aoust
Apologies for posting this to the Pre-Sales forum. My bad...Need coffeeeee! :)

Took a look at the forum and I can't find this and based on what I know of this great extension, I am afraid that the answer may be to modify the mod, anyway here goes:

I need a group registration to capture information about the 5 players on a team: you MUST have 5 players to register a team. There's also a charitable donation fee that can be paid either by the organization represented by the team or by the individual players. What I want after the "Number of Registrants" page is to display on the registration page (in a perfect world above the 1st member information) a text input field for "Team name" (so that the data is entered once and does not need to be repeated for all 5 team members) and a radio button to ask if the fees will be paid by the organization or individually: If individually, then within each team member registration ("Member x information""), I display a conditional field (triggered by "fees paid individually: selected above) to let team members select their charity of choice.

Thoughts?

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #61840 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Group registration: show custom field once
Hi Claude

Unfortunately, the answer as you guessed before, you will need to customize the code to handle this as it is not possible to do that by Events Booking :(.

Tuan

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #64123 by Mikal
Replied by Mikal on topic Group registration: show custom field once
I had the same issue, but I found a little "hack".

For me, I have a free event that I needed to have a third section of information, so I hijacked the Billing Information. I wrote some conditional logic that let's me show "Billing Information" or "Other Information" depending on the event type (not perfect if you don't want to touch the code, but oh well)

In my case, I needed to show "Department" and a message, but I only wanted to show it once at the end. To do this, I created a custom field called "Hidden Filler" and set it as a required radio button with only one Value and Default Value... both set to 0. Fee Field is Yes, and Fee Value is set to 0.

Now, obviously I don't want that to show up in my form, so I set it to Display in Both Group Member Form and Individual Billing. Then I added some CSS to hide that field. Mine was something like: div[id^='field_fill_'] {visibility: hidden}. Selectors are the only way to go because of nth possibilities.

This gave me Billing (Other) Information on a free event, that I can loop in any field that I only want to ask once. Might be a better way to accomplish this, but it worked for me.
Last edit: 10 years 9 months ago by Mikal. Reason: Bad CSS, need coffee

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc