Pass URL parameters to Hidden Form Fields


#1

Is there a way to pass URL parameters to hidden fields? I’ve followed this article’s advice of having the parameter getting passed through under the ‘Pre-filling a Form with URL Parameters’ section but I’m not sure if it works for hidden fields.


#2

Hi Mike,

Yes, this can be done. The key is to make sure your hidden field is named exactly the same as the URL parameter.

So for instance, if your URL is https://example.com/?utm_content=testing123 then you will need a hidden field called “utm_content” with no default value in it and that will grab the value from the URL.

More info can be found here: