AndresB Posted August 23, 2023 Share Posted August 23, 2023 I have two questions about customizing Squarespace forms, and I'm not sure either is possible: We often send existing contacts to the form and would like to auto-populate form values based on their information. Ideally, we'd send the contact a link to the correct page with a parameter for their email address – website.com/form-page?em=chris@example.com – and some javascript would parse the parameters and pre-populate the Email field on the form We'd also like to include some metadata about the form, like the version number of the form they're submitting since they frequently change. Ideally, we'd put a Version Number field on the form with a default value (e.g., "v1.0") and mark it as hidden, but that doesn't seem to be possible with Squarespace forms Link to comment
Vivienne13 Posted August 27, 2023 Share Posted August 27, 2023 (edited) @AndresB - I think I worked it out for #2. You can add as many hidden fields as you like, just select to add a hidden field. Give these fields different labels and their field names will change respectively. Then assign values to these hidden fields in the url string and they get passed successfully. Edited August 27, 2023 by Vivienne13 Link to comment
hharvey Posted November 10, 2023 Share Posted November 10, 2023 On 8/27/2023 at 4:34 PM, Vivienne13 said: @AndresB - I think I worked it out for #2. You can add as many hidden fields as you like, just select to add a hidden field. Give these fields different labels and their field names will change respectively. Then assign values to these hidden fields in the url string and they get passed successfully. Hi I am trying to do this with the new newsletter block, but that form doesn't allow you to add hidden fields. Users are redirected to our newsletter form with the url .... /newsletter?fname=@First name&lname=@Surname&email=@Email Any suggestions on how to pre-populate the newsletter block form with these params? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment