Support

Home Forums Event Espresso Premium How to display questions for Additional Registrants?

How to display questions for Additional Registrants?

Posted: January 10, 2016 at 5:03 pm


Hoan

January 10, 2016 at 5:03 pm

Hi there,

I am trying to programmatically query the questions from a particular event.

So far, I can retrieve the questions by the invoke the method question_groups() (according to this doc http://code.eventespresso.com/class-EE_Event.html). However, the method doesn’t seem to differentiate which one is the main question group, which one is the additional question group?

Ultimately, I am trying to display the view like this screenshot , as you can see the first section is the questions for main registrant, if the user click the green text (Spouse/Partner Details), the questions groups for additional registrant will display.

Thanks


Tony

  • Support Staff

January 11, 2016 at 10:47 am

Hi Hoan,

Are you creating your own checkout step for the user to register onto the event or is this intended as an ‘overview’ of a previous registration to allow for editing?


Tony

  • Support Staff

January 11, 2016 at 11:23 am

One of our developers shared an example of how to identify the question groups provided by question_groups() here:

https://gist.github.com/Pebblo/ce01a02c0864f2c57685


Hoan

January 11, 2016 at 9:42 pm

Hi Tony, thanks for the script but please correct me if I am wrong, the script doesn’t seem to tell me which one question group is for major registrant, which one for additional registrants.

FYI, I completely customise every checkout step based on event espresso API.


Lorenzo Orlando Caum

  • Support Staff

January 12, 2016 at 12:04 pm

Hi Hoan,

If you are customizing / re-writing registration checkout, then you may want to reach out to our developers as they would be able to share more feedback:

https://github.com/eventespresso/event-espresso-core/issues/new


Lorenzo

The support post ‘How to display questions for Additional 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.

Event Espresso