Auth0 Home Blog Docs

Hidden field in additionalSignUpFields creates error

lock
#1

I am using two additional signup fields with lock without problems. Now I like to add one (or more) hidden fields, but as soon as I add the example hidden field (as shown in https://auth0.com/docs/libraries/lock/v11/configuration#additionalsignupfields-array- )

    {
      type: "hidden",
      name: "signup_code",
      value: "abc123"
    }

I get the following error message:

Types of property 'additionalSignUpFields' are incompatible.

The following works, but is not hidden as I need it:

    {
      name: "signup_code",
      placeholder: "signup",
      value: "abc123"
    }

Do hidden fields work at all in lock v11?

#2

Can you share the exact initialization code for the property?