Re: Has anyone successfully passed hidden field values using URL parameters or cookies?

Anonymous
Not applicable

Has anyone successfully passed hidden field values using URL parameters or cookies?

We have set up a form on a Marketo landing page that allows leads to update their email details if they want to (hence creating a new record ). We want to pass a hidden field value through with this so that if a new record is created, we can still identify them - in this case the hidden field is a project ID.

Has anyone successfully used the "Get dynamic Value" property on a hidden field? I can get the default value to populate but not a dynamic value.

Also do Marketo forms pass data using cookies or URL? This is not covered in the documentation on hidden fields.

Thanks.
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: Has anyone successfully passed hidden field values using URL parameters or cookies?

Hi Lynda,

You can use cookies or url parameters.

An example url parameter might be:
www.landingpage.com.au?projectid=12345

When you have your hidden field in the form just hit the drop down to ask for "Get Value from URL Paramter" and then just put projectid in the parameter field. Default can be whatever you want in case there isn't a value.

Give that a go.  Cookies are good if you want to store the cookie throughout their web visit and not just on the immediate field.
Anonymous
Not applicable

Re: Has anyone successfully passed hidden field values using URL parameters or cookies?

Hi Michael, thanks for clarifying.

I feel I have it set up correctly to pass using URL and the field name e.g.  - www.mylandingpage.com.au?Project_name_C

I used the field name that appeared when in the form editor.

As I mentioned before, it passes through the default value OK but not the original project ID when a lead updates their email address and subsequently creates a new record via this form.

Thanks.
Anonymous
Not applicable

Re: Has anyone successfully passed hidden field values using URL parameters or cookies?

You may need JS for the data to carry from one page to another. That is what we experienced. When you click on to the next page the data values in the URLs don't always carry over.
Anonymous
Not applicable

Re: Has anyone successfully passed hidden field values using URL parameters or cookies?

Hi Lynda, you're missing the parameter in that. You need to define a field name & then the value. So your url should look more like ?project=Project_name_C ... then in your form you have a hidden field, parameter is Project, default is No-Project. Then it'll work.