This code is currently broken because of the recent (04/23) Squarespace redesigned form blocks. The specific issue is that SS removed support for the data-success-redirect attribute which allowed code to programmatically change the redirect URL on the fly and then SS would handle the actual redirect. Please contact SS customer support to encourage them to restore this functionality that existed in the prevoius version of the form block before the update.
I hope to make this code function again in the future.
-
Install twcsl.
-
Add code from file change form block post-submit redirect based on a radio form field selected option.html to Page Settings > Advanced > Page Header Code Injection for the page.
Please consider making a donation.
-
2021-06-13
- use twcsl
- bumped version to 0.1d1
-
2021-05-14
- initial version