Indeterminate Switch

It comes down to a client request. They don’t like the look of a checkbox (which has indeterminate state), they prefer a switch.

However, in their use case we don’t want the value to be preset to either True or False. The user must explicitly select True/False in order to go to the next step in the flow.

I have created a custom component here and it works great… if I only have one such switch… My JS knowledge is limited, but I know the problem is because I’m declaring something twice… Would love it if someone can help me get this to work so that I can add two or more of these switches to a form.