Add custom field in signup form

Hi, i using auth0 with woocommerce.

How to add a few field on signup form such as name, address, date of birth etc.

tried to add this but got error The Extra Settings parameter should be a valid JSON object.

Hey there!

Hmm it seems that you’ve done everything correctly when it comes to configuration:

https://auth0.com/docs/libraries/lock/lock-configuration

Added a few tags to your question for better visibility as I don’t have much experience with Wordpress and Woocomerce

i pu a code on universal login customize login page but how to accept only number:

additionalSignUpFields: [{
name: “first_name”,
placeholder: “Enter your first name”,
//icon: “https://longinhq.com/wp-content/images/png/user.png”,
},
{
name: “last_name”,
placeholder: “Enter your last name”,
//icon: “https://longinhq.com/wp-content/images/png/user.png”,
},
{
name: “date_of_birth”,
placeholder: “Enter your date of birth (12-02-2000)”,
//prefill: “12-02-2000”,
//icon: “https://longinhq.com/wp-content/images/png/user.png”,
/validator: function(date_of_birth) {
return {
valid: date_of_birth.value = int,
hint: “Must have 10 or more chars” // optional
};
}
/
},
{
name: “billing_phone”,
placeholder: “Enter your phone number”,
//icon: “https://longinhq.com/wp-content/images/png/user.png”,
/validator: function(billing_phone) {
return {
valid: billing_phone.value = int,
};
}
/
}]