Using data from form field in the redirect url on form submit



Hello All,

I’m currently developing a website in HubSpot and I have been having some issues with Forms.

When a user enters a value and submits the form, I want to use the value from the form field in the redirect URL.

For example, a user enters some value X in the field (say the property is “value”) and submits the form, the user should be redirected to a URL with the value X in the end.

example jquery code for the above function: ‘window.location.href = ‘’ + X;’

PS. I’m new to web development. Can you make the answer as simple as possible? Thanks!


Hi @sabari,

The following topic has a few different suggestions for how to add form fields as query parameters on the redirectUrl:


Hello @Derek_Gervais,

Thank you for your help. I’ll look into it!