Imbedded form with, populating and hiding an input field

Hey all,

I have a form that I’d like to add a field to, that will be prpulated with data from the web page, or URL. I Just need some identifyer to specify what page the form is on. Preferrabley hidden also

Is that possible?

Thanks!

Hi @DBarrar,

HubSpot lets auto-populate form fields (including hidden ones) with a query string. This is explained here: Auto-populate form fields with a query string

If you want to dynamically store the page URL in a hidden field, you can find the code needed for that nere: https://community.hubspot.com/t5/APIs-Integrations/jQuery-to-get-page-URL-in-hidden-field/m-p/227627

Hope this helps! If it does, please mark my reply as an accepted solution.

Have a great day!

Thank you for your response @karstenkoehler .

Is there any risk involved with users putting in a malicious value into this query string?

Thank you.