I have a custom event template on which I hide some fields based on whether someone is registering themselves or an additional participant. There are 2 different price options, one for the main registrant and one for the additional participant. The price set needs to have required fields for each situation. How can I get civi to ignore the required fields if they are hidden?
AFAIK this cannot be controlled in CiviCRM ATM. However there is an extension(from Allen Shaw) for conditional filtering on profile but I guess this will not work in your case.