Setting a hidden field value with JSON from Javascript and use update event

Hi community,

I’m quite familiar with updating a hidden input field (using it’s unique ID) & triggering the hidden field’s update event to use the passed value…

But, how do we pass a JSON instead of a single text value (instead of ‘My Value’ in the above jquery snippet)?

JSON like this: { "order1" : {"productid" : "121", "producttype": "metal"}}

I’m able to set the hidden field value from javascript like this JSON.stringify(json_object) but when I assign it to an app-connect variable using the hidden field’s update event, the variable doesn’t become a JSON object.

Any help will be appreciated! Cheers!

Community Page
Last updated: