Hidden Form Fields

OBJECTIVE: when submitting a form, I want to submit a hidden field that tells me what is currently in the user’s cart.

I know I need to put an embed widget into my form, but I don’t know what code would be used to extract the current cart data. Could use some help.

@cyberdave via [ Dynamic form field ], showed us how to dynamically create the hidden input field (but in that case for the current url, etc):