I have an event where a minimum of 2 tickets must be purchased for each registration.
There is one field for the primary to enter a “group name” that is applicable to each additional attendee in the group. Submitting the registration only ties the “group name” to the primary attendee though, and not all the additional attendees. I require the same “group name” to apply for each additional attendee.
So, I have added the “group name” form field for additional attendees to answer also. However, the “group name” for each attendee in one registration must be identical. Thus, I am considering using javascript to disable the field for additional attendees and populate it with whatever “group name” is for the primary attendee. I am not sure about the proper way to do this though. Is there a hook to tap into that is appropriate for this? Do I need to find the registration template and add javscript into it? Is there a simpler way to simply tell EE to take group name from the primary attendee and apply it to each additional attendee?
That currently targets the ’email’ fields and leaves only the first for the primary registrant, then copies the value entered into all others (essentially the same as what you are asking for only a different field).
Which uses the ‘Primary Registrant’ answer for any questions that don’t have an answer on the additional registrants when you export the CSV. This is a little different in that it doesn’t ‘set’ a value on the question, it’s simply using the value from the primary for all and only does so on the CSV so may not work for you depending on your use case.
Just thought I’d add those incase they are of use for you.
Viewing 2 reply threads
The support post ‘Registration Form – how to add javascript?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.