1

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 :-)

2

if you setup your custom fields in profiles only for the roles that are needed then does it not automatically only display those fields that are relevant? p.s. we wrote and maintain the extension that your referring to!

  • Been awhile but I wanted to follow up with a question. You state above "does it not automatically only display those fields that are relevant"? No it doesn't. It doesn't display the role-specific profile fields at all, only the default profiles selected for the main participants in the Online Registration settings. What am I missing? How do I make the role-specific form display only the role-specific profile? – minbori Nov 25 at 13:24
  • I should add that the role-specific profiles appear in the backend, but not in the frontend registration form. – minbori Nov 25 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.