Using $set on hidden field

Is there a reason why it's not possible to set the value of a hidden field (i.e.: Forms\Components\Hidden) using $set so that the value is visible from JavaScript in the normal manner?

I've some code that works as expected when using a normal text field (as a quick visual debugging mechanism), but which fails when the form element is set as hidden.

Is this expected behaviour?
Was this page helpful?