Going directly to Signup or Login lightbox

Question:
How do I specify in code whether to bring up the Signup or Login lightboxes?

Product:
Wix Studio

What are you trying to achieve:
I would like to have “Sign Up” and “Login” buttons on my Homepage that take users to the appropriate lightbox. The Sign Up button would be right under a marketing blurb “Join us because we’re going to solve your every problem.” :wink: The Login button will be in the upper-right corner for existing users (yes, potentially duplicative of the Members menu).

What have you already tried:
Reading the docs, it seems like I can only select which lightbox (signup or login) is displayed by default.

Additional information:
I’m fine creating custom forms in Velo if needed but I really don’t need to so I’d rather not if possible. I’m also fine creating custom pages that then pop up the specific lightbox if that would help.

When using the promptLogin() function in wix-members-frontend, you can set the mode to either "signup" or "login" depending on which button the user has clicked.

1 Like

@Pratham That is EXACTLY what I need. Thank you SO much for the quick answer!

Also looking around at the other login methods as there are a couple others that will also come in quite handy.

Thanks again!

1 Like