The issue I am having is I set that question for the primary registrant only. The context is a administrator will be signing up all of the doctors and the answers to all of these questions in the group applies to all the group registrants. So when I ask the question group for the primary registrant I want the question answers for this group to appear in all the “view registration details” for the group registrants and not just the primary registrant.
I know one way around this would be to set the question group for the primary and group registrants, but the downside is i would be asking for duplicate information for the whole group, when i only want to ask the questions group once and have the questions answers apply to the primary and all the group registrants.
Each registrant record stores the questions and answers that are collected during registration. You would not be able to reuse the answers for one attendee for the other attendees.
There are two approaches. One would be javascript based, which would hide the questions in that group on the forms for the additional attendees. Then attach a listener to the questions on the primary attendee, and when one is changed, copy that value to the hidden questions on the additional attendee.
The second approach, and the one that I would personally opt for, would be to look for a hook in the process after the questions are saved. Then starting with the primary attendee’s registration, grab the transaction, all the additional attendees’s registrations, copy those questions from the primary onto the additional, and tell them all to save themselves. (the docs) You can place all the custom code into a custom functions plugin so that none of the core code is changed.
Viewing 2 reply threads
The support post ‘Question group to be applied to primary and shown for all group registrants’ 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.