Conditional signup fields on Lock

Hi Guys,

I’ve managed to add fields to the signup form. They end up in the user parameters nicely via additionalSignUpFields. However, I need an optional field based on a select field for organisationtype. Say if someone selects organisationtype == A, then no extra field shows. However, if they choose B, then a extra regular field should show to fill in a certain number.

Can someone help me to set this up? Maybe I can accomplish this via a validator on the organisationtype field?

Kind regards, Jeroen

anyone? I can’t find it anywhere in the documentation whatsoever…