How to add custom fields to passwordless verification screen with 6-digit code input? Answered

Post author
Eric Button

hey guys, I’m using the new passwordless login for a project (see attached), and am wondering if I can combine 2 custom field inputs on the same screen as the 6-digit verification input. If i understand right, the user only shows up in the database once they’ve input the correct 6-digit code; is that the case? What might be preventing me from making this work, and what might the solution be?

Comments

5 comments

  • Comment author
    Marc Hudson

    Out of curiosity I just tested this and:

    1. Member only gets created if they confirm their email by entering the Step 2 code.
    2. You can add custom fields within the step-2 container and they’ll get saved to the new member.
    0
  • Comment author
    Eric Button

    oh interesting. cool, thank you!

    Folks, is there a way to create multi-page signup forms for passwordless? would love to have these two separate figma frames be two separate pages, but i don’t see any documentation on how to do that, and my several attempts have failed…
    0
  • Comment author
    Duncan from Memberstack

    Hi Eric Button It’s not possible to spread these forms across 2 pages. However, you could layout the page in such a way that it would “look” like it happens on 2 different pages.

    i.e. You could absolutely position the 2nd step on top of the first.

    0
  • Comment author
    Eric Button

    Thanks Duncan from Memberstack is there a way to control the visibility of ms-passwordless-step 2 ourselves (and not by the memberstack hard-code?)

    0
  • Comment author
    Marc Hudson

    (This is pre-coffee and from memory) but based on the test I did above you could put the first and last name fields inside of the passwordless code wrapper. That way, when they click the button on step one, all the fields on your step 2 including the token code field are displayed. You’ll just need to hide the step 1 element with some jQuery when the first button is clicked.

    Remember, the form isn’t submitted and a MS user isn’t created until they click that last submit button, so you actually have quite a lot of control over the onboarding process (nicely done Memberstack 🙌

    If you need the jQuery, I write that for myself yesterday and can share 😌

    0

Please sign in to leave a comment.