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 form block post-submit redirect url email parameter add.html to Page Settings > Advanced > Page Header Code Injection for the page. Please see per-page code injection. Read the code for any instructions within.
Please consider making a donation.
-
2022-12-07
- replace hard coded string with attribute constant, no functional change
- bumped version to 0.3.1
-
2022-04-19
- add setting for nth form on page
- add setting to override default query string search parameter key
- bumped version to 0.3.0
-
2022-03-23
- add encode flag to control if email address is encoded per url spec
- bumped version to 0.2d0
-
2021-11-17
- initial version
All trademarks are the property of their respective owners.