Hidden field attributes to reference in API

Hi there!

I am storing cookies on my page and I need to populate hidden fields in my form with these values. I am using the following script in the footer of my page to do this.

Since both the ‘name’ and ‘value’ are not rendering, I’m concerned that these are not the correct attributes I should be referencing.

When setting up the hidden field, I have the ‘Map to’ option and the ‘Value’ option.

Any ideas as to how these attributes should be referenced? Thanks!