I’ve added a hidden field to my survey. I would like to set the value of the hidden field to a value I calculated in javasript. How do I do this?
You would have to use the id or get incredibly generic and just target all hidden inputs. Something like: $(‘input:hidden’).val(‘Stuff you want to write’);
Or: $(‘#hidden-value-id’).val(‘Stuff you want to write’);
The first line would only be recommended if there’s only one as it will target all hidden inputs.
Hope this helps!
This would help on how to find the the element ID so you can change the value