How to fix "Cannot read properties of null (reading 'value')" error in Memberstack forgot password form?
Hi Team,
Having issues withe the forgot password flow.
i was following this guide but on the first screen i keep getting the error "Cannot read properties of null (reading 'value')" when i click "Send"
The site link for you to troubleshoot it - https://www.productm8.io/ click the login
Comments
5 comments
Hey Craig Quilkey, can you change the attribute of the forgot password form to data-ms-form="forgot-password", it seems you have the reset form attribute (step 2 form attribute) enabled in the forgot password form page which is step 1.
Double-check if you have the rest attributes correctly on the other steps and can you test it?
ok great. i found that reset hidden on the form thankyou.
can you look as to why its redirecting to: https://www.productm8.io/password/null
Instead of: https://www.productm8.io/password/reset-password
have you set the redirect to 'password/reset-password' in the forgot password settings? Can you double check that?
Thankyou, but I updated and still getting:
https://www.productm8.io/password/null
I see that you added the form attribute aforementioned in the div block rather than the actual form element. So as an example, the data-ms-form="forgot-password" should be placed on the Form 3 element in the below example screenshot. Can you remove it from the div block and rightly place it on the form element and then test it?
Please sign in to leave a comment.