Skip to main content

How to fix signup page linking to login instead of signup despite using "signup" in custom attributes?

hi, I'm not sure why my signup page is linked/being a login page even though in the custom attributes I put "signup'

9 comments

  • Nicholas Platt
    Nicholas Platt

    You need to share the webflow project

    0
  • Matthew Segura
    Matthew Segura OP

    https://zapr-ai.webflow.io/user-sign-up

    0
  • Chukwudi
    Chukwudi

    Upon checking your website, I discovered you have the data-ms-form="signup" attribute in the div instead of the form. Kindly remove it from the div, and place it in the form and the issue will be gone.

    0
  • Matthew Segura
    Matthew Segura OP

    oh wow haha, thank you very much

    0
  • Chukwudi
    Chukwudi

    You're welcome.

    0
  • Matthew Segura
    Matthew Segura OP

    for this button, I was trying to figure out a way so that even though it shows login to the user, once the user logins in the button now says "Account" which will redirect to the users account now to show memberships.

    the only thing i've figured out so far is by manually redirecting it to a new homepage but i'd rather just use the same page
    0
  • Chukwudi
    Chukwudi

    Here's a simple way to implement this:

    You can add data-ms-content="!members" attribute to the Login button and create a second button, Account with data-ms-content="members" data attribute. This way, the Login button will be displayed for logged-out members, and hidden for logged-in Members while the Account button on the hand will do the opposite i.e. Show for logged-in members and HIdden for logged-out members.

    This article would be helpful.

    0
  • Tomasz Moszyński
    Tomasz Moszyński

    Hi!
    Today, I wanted to add an additional field to the login and account creation page for repeating the password (in the account creation form).

    Unfortunately, the script (since there's a login panel next to it) checks both fields with: data-ms-member:password, and even if the passwords are identical (in the registration panel), it throws out information about incorrect passwords.
    I've created a simple workaround. Maybe it will be useful to someone.

    The first password field has been given an additional attribute: ms-code-password:first.

    A small change in the code (no. 46):

    Instead of: document.querySelector('[data-ms-member=password]')

    I added: document.querySelector('[ms-code-password:first]')

    Problem solved.

    0
  • A J
    A J

    Thanks Tomasz Moszyński for sharing workaround for such specific use-case.

    0

Please sign in to leave a comment.

Sitemap