Hello! I am trying to add an additional field to my Auth0 login page. But I am unable to get it to work as explained here in the docs. I have tried everything I can think of. Can anyone see what I am doing wrong? Other options, like allowForgotPassword: false work fine.
Under the theme object, there is no reference to logoToUse - you have to use an actual URL to an image there, or set the logoToUse variable/constant to that URL so that it works.
Can you please address that in your template or remove the line, and let me know if it works?
Thank you for your reply! The logoToUse variable is created outside of the lock function. But I did try using a hardcoded url string as well as removing the line but that did not change the output. Even if additionalSignUpFields is the only option passed I am not seeing any change.
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
additionalSignUpFields: [{
type: "checkbox",
name: "patientprivacy",
prefill: "true",
placeholder: "I hereby agree that I want to receive marketing emails from your company"
}]
});
But if it is working for you then perhaps it has to do with some sort of cacheing or other settings in my Auth0 account?
This is the version of lock that I am using: <script src="https://cdn.auth0.com/js/lock/11.21/lock.min.js"></script>
By only having that option, you are missing other options that are vital for Lock’s functionality. You should be following the instructions we provide in our documentation to add these to your setup.
There is no caching in tenants, so the only difference here would be the code that you modify.
I suggest that you reset your template and give this another try, from scratch.
Ah, I see my problem. I was expecting the field to show up on the Login tab, but clearly this is additionalSignUpSFields so it is showing up on the Login tab.