Hidden Field in Wix Studio

Question:
I having extra field and set to invisible, i’m try to set the field based on specific URL paramter. I also using Google Tag manager so i could create a small script to grab the value and set to hidden field. But the problem is, i look at the output and the hidden field doesn’t have any output.

How to accomplish this ?

Product:
Wix Studio

What are you trying to achieve:
Set a value to hidden field based on javascript

You wouldn’t set the value to the input element, instead you would set the value directly to the dataset onBeforeSave ….

https://dev.wix.com/docs/velo/api-reference/wix-dataset/dataset/set-field-values

https://dev.wix.com/docs/velo/api-reference/wix-dataset/dataset/on-before-save