How do you edit URL Parameters in a Hidden Field to always reflect same "query parameters" for that form submission?

Ronn_Burner
Level 4

I have seen this (Set a Hidden Form Field Value) Marketo Doc but I'm still unclear as to precisely the correct approach.

I need to get this ?Program=Email&ForImport=True‍ "Query Parameters" to be reflected on the lead record's activity history each time that form is submitted regardless if they came through an email/ad UTM link query OR if they went straight to the LP and the URL parameter is not attached.

How do I edit the "URL Parameter Value" in a hidden field so every time that form is submitted it will write the "Query Parameters" of ?Program=Email&ForImport=True on that lead record?

This is the landing page through a UTM link which obviously properly get the value from the URL parameter:

https://get.landingpage.com/?Program=Email&ForImport=True

How do I get that same result from a form submission from the same LP that does not have a query like this?

www.get.landingpage.com/

This was inherited and the mystery that surrounds this is that in our custom CRM which is a one-way street pushing data to Marketo. Marketo does not push data to our CRM, however, this URL Parameter (?Program=Email&ForImport=True) somehow (literally nobody knows as many developers have left) provides data that gets extracted mysteriously (without webhooks) from Marketo by our CRM which then triggers an alert to the specified Sales Rep.

12 REPLIES 12