Jump to content

How to add a list of States and redirect based on Option chosen?

Recommended Posts

Hello, I'm working on an Accounting website and I'm trying to recreate this state list in squarespace, but I'm not sure how to do it. On the old website there is a list of states, you select a state and hit Go. Depending on the state you  choose, you will be redirected to that state's Tax page. Is there a way to do something similar in squarespace? 

Edited by DoubleD480
spelling error.
Link to comment

Once the form block select field post-submit redirect change code is installed you do not need to edit it. All the action to configure it happens in the SS editor interface per the install instructions.

For the select field description you'd enter something like the following.

fbsfpsrc
Alabama
https://myalabamataxes.alabama.gov/

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
Quote

also is there a way that the redirect can be opened in another tab?

It might be possible but not with my code. My code basically ties into the functionality SS already provides.

I think you would need a new piece of code that overrides SS's behaviour and opened the URL in a new tab.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 3 weeks later...

Please post the URL for a page on your site where we can see your issue.

A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 12/30/2022 at 6:27 PM, DoubleD480 said:

Hello I used your code and it was working fine, but I looked at it today and I'm not sure what is causing this to happen?

My code is not installed on the page so it can't work.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.