How to fix /null redirect when implementing a password reset form with current password verification? Answered

Post author
Andrés Esquivel

Does anyone have any issues when redirecting a Reset-Password form? For some reason, the form works (I get the email to reset my password), but the redirect, even though is setup correctly, sends me to a /null.

Link to the reset page - https://sphereworks.webflow.io/forgot-password

Comments

15 comments

  • Comment author
    Tyler Bell

    move the data-ms-form='forgot-password' attribute to the <form> itself.

    that should fix the problem.

    0
  • Comment author
    Andrés Esquivel

    I did, it doesn’t seem to work

    Initially, when you sent the screenshot, I had it on the Form Element in Webflow like this:

    I moved it now to the Form Div and it still won’t work

    0
  • Comment author
    Tyler Bell

    I'm still seeing it on the div above the form.

    0
  • Comment author
    Andrés Esquivel

    Can you check now? Just published the changes

    0
  • Comment author
    Tyler Bell

    still there

    you probably need to open up the "Form 3" dropdown in the editor

    0
  • Comment author
    Andrés Esquivel

    I'm sharing the read-only link. I swear this thing is removed haha

    https://preview.webflow.com/preview/sphereworks?utm_medium=preview_link&utm_source=designer&utm_content=sphereworks&preview=d9c400a7fc829a9e4195accc6e125ef9&pageId=65556e03943eef6ca3faac78&workflow=preview

    0
  • Comment author
    Tyler Bell

    ah I can't see the elements on the left with the read only link.

    you might be experiencing a really annoying webflow bug. Sometimes updating / moving attributes doesn't reflect in the published site.

    The fix for that is to delete the attribute, publish the site, and then add it back.

    0
  • Comment author
    Andrés Esquivel

    Should it be in the form element, or in the form div inside the form element?

    0
  • Comment author
    Tyler Bell

    hmm I think the element you have highlighted

    0
  • Comment author
    Julian Galluzzo

    Sometimes theres a webflow issue where things you do dont publish - try to refresh the designer page, make the change, then republish

    0
  • Comment author
    Alexander Schiffmann

    I'm trying to create a reset password form.

    I can't seem to find a custom attribute I can add for the current password field.

    I want the user to be able to enter their current password and a new password, and if the current password matches, it changes their password.

    I want the user to be able to change their password when they give their current password 
    0
  • Comment author
    A J

    I believe data-ms-member="current-password" is the attribute you can use for the current password field. Hope this helps.

    is this for logged in users? If yes, the data-ms-form attribute should have the value "password" instead of "reset-password" and it should work as you intend it to.

    0
  • Comment author
    Alexander Schiffmann

    I tried applying the change, however on submit I receive this error from memberstack:
    Cannot read properties of null (reading 'value')

    Test mode link:
    https://preview.webflow.com/preview/zen-script-central-dd7ab6?utm_medium=preview_link&[…]&pageId=67aa2c60742c0ef7f456b17f&locale=en&workflow=preview

    0
  • Comment author
    A J

    can you change the new password's attribute value to 'new-password' instead of 'password'? Let me know if that works.

    0
  • Comment author
    Alexander Schiffmann

    This resolved the issue, many thanks!

    0

Please sign in to leave a comment.