Hi All
I appreciate this has been asked before, and I’ve read all the previous discussions on this, but couldn’t quite find the answer.
Put simply, I have a custom sign-up form in a lightbox, and upon successful registration, I wish new users to be re-directed to a specific page (a further data capture page), where they will complete a 2nd form to populate the content database.
Can anyone share the code & also let me know where I can access the code for my lightbox custom sign-up form.
Thank you!
1 Like
So once again, it seems I’ve solved my own problem haha. I found this piece of code which worked a treat. Simply open the dev mode, and pop this code into your custom sign-up form template, and it worked a treat:
In the below example “application” was the name of the page I was re-directing to, so just replace that with the name of the page you want to re-direct the user to.
import wixLocation from ‘wix-location’ ;
export function registrationForm1_wixFormSubmit() {
wixLocation.to( “/application” );
}
export [function](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} ) [ registrationForm1_wixFormSubmitted() {](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} )
[ wixLocation.to(](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} ) [“/application”](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} ) [);](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} )
[} ](function registrationForm1_wixFormSubmitted() {
wixLocation.to(“/application”);
} )
Hope this helps people out there, as this seems to be a very common asked question!
Regards
Tom