Posted: June 1, 2021 at 11:13 am
I’m using this code to check if a registration is done with a specific email adres and change the status and send a confirmation email. I also would like to hide a (registration) question and make it optional instead of required.
I tried adding css to hide ‘spco-attendee-panel-dv’ after the IF but it did not work.
Any pointers how I go about this?
The hook you are using would ‘fire’ after the registrations had been processed within Single Page CheckOut (SPCO for short).
SPCO is responsible for creating/managing the steps when creating registrations etc on the front end, it would also be what triggered the function to confirm all registration inputs were ‘valid’ (meaning required fields had values etc)
So the hook you are using for this would fire too late for you to make a change that would be useful in your situation. We have a hook you can use to hook into SPCO and access the registrations right before the reg step process them:
An example of using that hook can be found here:
Note, I have tested switching reg questions to no longer be required with this but it would be where I would start, at least for the registration question part of your request.
Tried to hide the element, but this is beyond my capabilities :/