SSDEV Posted August 27, 2014 Share Posted August 27, 2014 I have two forms on my site (sign up and invite others). I was able to get the sign up page to redirect where I want by injecting code into the footer section in settings. But I cannot get the 2nd form (invite others) to redirect to a new page. It redirects to the same page as the signup form redirects to. HELP? Link to comment
colin.irwin Posted August 27, 2014 Share Posted August 27, 2014 Are you using jQuery script to perform the redirect? If so, it should be possible to set up selection rules based on the collection ID to have multiple scripts running. I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
colin.irwin Posted August 27, 2014 Share Posted August 27, 2014 ..so what are you using? I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
geekgirlweb1570047771 Posted April 27, 2015 Share Posted April 27, 2015 You can do this with an HTML meta tag, tested this on one of my own forms: <meta http-equiv="refresh" content="0; url=http://new-website.com" /> Source: https://css-tricks.com/redirect-web-page/ Link to comment
Justin Posted April 30, 2015 Share Posted April 30, 2015 This is great! You can place this code into the form block's 'Post Submit HTML' field. Link to comment
renatafreeland Posted July 26, 2015 Share Posted July 26, 2015 is it necessary to add anything else (like ) or only to copy and paste this code on POST-SUBMIT HTML field? thanks! Link to comment
christen1570048060 Posted July 27, 2015 Share Posted July 27, 2015 Can't seem to make this work. wondering if there is more to it? Link to comment
christen1570048060 Posted July 27, 2015 Share Posted July 27, 2015 Can't seem to make this work. wondering if there is more to it? Link to comment
Justin Posted July 28, 2015 Share Posted July 28, 2015 Since this question has already been answered, you might want to create a new question with the exact code you are using and a link to your website so the community can take a look. Link to comment
gehernando Posted November 30, 2015 Share Posted November 30, 2015 you have to remove the ' characters before and after the URL. Link to comment
devonstank Posted May 23, 2016 Share Posted May 23, 2016 I have a solution for this posted on my site with a simple how-to video, as well as easy-to-read written instructions. You can find it at devonstank.com/squarespace-form-redirect Devon Stank @ Devonstank.com (Squarespace Tips & Tricks) Link to comment
squareguru Posted July 2, 2016 Share Posted July 2, 2016 We've created a free plugin to do exactly this (no coding required, just copy and paste): http://www.squareguru.com/form-redirect It’s been tested on all major browsers and works on mobile as well. www.squareguru.com Link to comment
squareguru Posted July 2, 2016 Share Posted July 2, 2016 We've created a free plugin to do exactly this (no coding required, just copy and paste): http://www.squareguru.com/form-redirect It’s been tested on all major browsers and works on mobile as well. www.squareguru.com Link to comment
Laly Posted July 24, 2016 Share Posted July 24, 2016 @squareguru I tried the plugin but it doesn't work, I just emailed you ;)My form is a Terms and Conditions checkbox (required field) and I want the submit button to lead to an e-junkie cart page. Link to comment
Laly Posted July 24, 2016 Share Posted July 24, 2016 @squareguru I tried the plugin but it doesn't work, I just emailed you ;)My form is a Terms and Conditions checkbox (required field) and I want the submit button to lead to an e-junkie cart page. Link to comment
katieseaver Posted August 8, 2016 Share Posted August 8, 2016 Thank you so much for such a clear + detailed answer! This worked really well for my site, for all of my opt-ins (such as this one: http://www.katieseaver.com/free/). Link to comment
Hazel Posted October 24, 2016 Share Posted October 24, 2016 This worked perfectly for me too!! Thank you so much for this, it solved a huge problem for me!! Link to comment
Trey_SQSP Posted June 27, 2017 Share Posted June 27, 2017 For anyone wanting to do something similar for Commerce, where it should redirect to a custom page after checkout, rather than the normal Order Confirmation page, this same tag can work for that too. This would go under Settings > Advanced > Code Injection > Order Confirmation Page. Link to comment
Guest Posted October 4, 2017 Share Posted October 4, 2017 I'm trying to obtain some information on conditional form redirects. i.e given a particular entry in a form box, redirect to a different page to that set out for another type of entry. Can anyone recommend any code/plug-ins that would help with this? Link to comment
kikibakowski Posted March 4, 2018 Share Posted March 4, 2018 Hi Devon, I tried using your code on a coverpage and it's not working. Can I use this code on a coverpage to redirect to another coverpage? Is that the issue I'm running into? Any help is greatly appreciated. thanks! Kiki Link to comment
Liza Posted September 25, 2018 Share Posted September 25, 2018 This worked perfectly for me! Thank you @Vexsoft! Link to comment
Guest Posted May 6, 2019 Share Posted May 6, 2019 Are there any additional snippets that need to be added for this to work in IE11 and Firefox? This works great in Google Chrome, but it doesn't appear to be working in IE11 and Firefox. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.