As I've stated above, no I'm not very "clued up" on how to use cookies Our developers have created this for us, my question was whether I was doing anything wrong in setting up these to capture the fields in our web forms. I certainly wasn’t asking anyone to write the code for me.
I’m sure you appreciate not everyone is experts on coding and responses like this certainly don’t help us less experienced reach out for help! I was simply troubleshooting and hoping to pass on any key info to our developers to assist further.
Hi Ellie,
To explain what Robb is getting at, it can be frustrating to field questions about code that was presumably contributed by a professional developer without an explanation for why that person her/himself isn't debugging it -- that is, why the question is going to the Community first.
Of course we're here to help, but if someone is contributing production code to your site, even if they admit they don't know what's wrong they should at least provide you with the code so you can present it for review here. There are 77 assets loading on your site that I had to sift through to find out what I assume is the intended behavior.
Anyway, from what I can see, you don't have your hidden field sources set up correctly. Only one of the 2 forms on that page (the modal form) has the hidden fields config'd at all. But it's looking for cookies named like utm_medium_last__c (i.e. the cookie named the same as the field name) while the stored cookies are actually using shorter names like utm_medium_last. The form needs to be set up to look for the appropriate names.