My requirement: collect different custom data for different participant roles registering for the same event.
I know this would be simple with Drupal/Webforms but I'm on Joomla -- and this seems to be very difficult without the Webform integration!
This extension (Event Registration Based on Participant Roles) works great to provide the participant role I want to use to my registration form. However, I can't figure out how to switch to a different custom profile in the registration form based on the participant role.
I've tried using the buildForm hook to add in the specific custom fields I need based on the current participant role, but it seems that buildForm hook does not allow me to REMOVE custom fields that I DON'T want to appear on the form for specific roles. I can only add fields to the array of fields that are already included from the profile selected on the "Online Registration" configuration.
I thought about just using Jquery to hide the fields I don't need from whichever role is currently selected, but that causes validation problems -- and I don't want to have to rewrite validation rules for every participant role context!
I just can't believe this is this difficult, and think I must be missing something obvious. Or do I really need to hand-code a new, completely standalone registration form for each participant role?
Thanks in advance for your suggestions :-)