Dynamically create hidden input form field

Hi guys,
I saw the Video about the CMS Quiz from Timothy Ricks today. I rebuilt the whole thing and wanted to extend it a bit. I would like to collect the results via Zapier and display them in a leaderboard. For this I wanted to use a hidden form field, into which the result number is copied with some custom code. Very similar to what he did with the webflow retreat app. So far I have not been able to get my jQuery code to run.

Can someone help me with the jQuery command to copy the result number to a hidden form?
Best, Joel

Basically, I have the result at the end of the quiz and I want this to be sent as a hidden input field in the form with the name. Can anyone help me with the custom code?