Hello, I would like to enable the functionality to...
# support-questions-legacy
f
Hello, I would like to enable the functionality to save the "First Name" and "Last Name" fields in SuperTokens. However, despite adding the "usermetadata.init()" value, it hasn't worked, and the fields are displayed as "-". At this point, I assumed that what was missing was to add additional fields both in the frontend and backend following this part of the documentation: [link to the documentation]. The added fields have the identifiers "first_name" and "last_name," as indicated in the tooltip. However, this hasn't resulted in saving the fields in the dashboard, although they do appear in the frontend, and the sign-up process works correctly. Frontend:
Copy code
...
        signInAndUpFeature: {
          providers: [Google.init(), Github.init()],
          signUpForm: {
            formFields: [
              {
                id: "first_name",
                label: "First name",
                placeholder: "First name"
              },
              {
                id: "last_name",
                label: "Last name",
                placeholder: "Last name"
              }
            ]
          }
...
Backend (Here, I haven't added anything related to the "override_apis" function (3rd step). Is this necessary, or is adding the fields as shown sufficient?):
Copy code
...
        thirdpartyemailpassword.init(
            sign_up_feature=thirdpartyemailpassword.InputSignUpFeature(
                form_fields=[
                    InputFormField(id="first_name"),
                    InputFormField(id="last_name"),
                ]
            ),
...
I also wanted to ask if it's possible to change the order of the fields in the sign-up form. I haven't found any information about this anywhere. Thank you in advance.
2 Views