Redirect Members to a Specific Page Upon Signup/Login velo code

I am new to coding and I am trying to figure out if there is a way to Redirect Members to a Specific Page Upon Signup/Login by velo code? Im using the custom lightbox with a signup button.

Hi, Reagan_Hess !!

In the “custom lightbox with a signup button” you’re referring to, are you not using any Velo code at all for the signup process? :thinking:

Hey Reagan,

Did you try searching about this on the community before posting the question?
It is always recommended to search the forum first. Chances are - many have already faced the same problem and have found a solution.

So start with the search here.

1 Like

hello! Yes that is correct I did not use any coding for the lightbox sign up page. So I created a membership and then for the signup I chose the custom sign up page which creates the lightbox and allows me to add whatever fields I need. The only thing I have left to figure out is how to connect the sign up button to another page so when they click sign up it pushes them to a landing page.

Typically, the completion of a new member registration is accurately determined by receiving the result of an asynchronous process using Velo code. Therefore, I personally recommend implementing and controlling everything using Velo code.

However, it might still be possible to add just a bit of Velo code to the current “Custom Lightbox with a Signup Button” and enable a redirect after signup (though I haven’t actually tried this). I suspect that Wix has some built-in elements like a kit for signup. By monitoring changes in those elements with Velo code, you might be able to determine when the signup is successful.

For example, if a “Signup Successful!” message is displayed upon successful signup, you could write Velo code to check every second using setInterval to see if that text has been displayed, and if so, execute code to redirect to another page.

However, even if this method is possible, I wouldn’t recommend it. If you want to add custom processing after signup, it would be much more natural and safer to write the signup process itself in Velo code.

※ I haven’t used the “Custom Lightbox for Signup” recently, so I’m not sure, but there might be an option to set the post-signup behavior directly in the editor without using code. So, please check for that first. :wink:

thank you! because I am new to coding I figured I would use the custom lightbox and see if I can do a little of coding woth redirecting the button.