I am customizing the SignUp form fields. How do I ...
# general
f
I am customizing the SignUp form fields. How do I add a "Select" dropdown?
n
Hi, What recipe are you using?
f
Yes, seen that. But doesn't show any Select examples, or in docs
using EmailPasswordAuth: NextJS
I see how to add formFields, but all examples show just text input
r
@funk101 we don't allow you to add non text inputs at the moment to the sign up form, and you can't use the react override to insert a component in the middle of the form UI. What I suggest is that you keep the sign up form to just have email / password, and then post sign up, you can show a UI to the user to ask for more info.
However, if you really need to, you can always just use plain JS to insert an element in the sign up form.
f
I see, thanks
r
An example of how you can use JS to select / manipulate DOM elements is here: https://github.com/supertokens/supertokens-auth-react/blob/master/test/helpers.js#L114