How to add the value of a field with JS during Sign Up with Universal Login

Hi,

I’m trying to update a hidden field in the sign up form with JS. However, it is always reverted back to its value when clicking sign up submit button.

How can I add my value using JS in the Universal Login form?

Thank you