Form field manipulation in html widget

I have problem with form in html widget.

In attached example I’ve included a form (made with bootstrap) and I try to control it by Hype button.

In the sample file to test functionality, when i press a “big test button” in the second filed of form should be set a “test” text to confirm the functionallity.

So, it work on any device except on iPad.

When button is pressed consolle log retutn error “HYPE-518.thin.min.js:14 - Error in untitledFunction: TypeError: Cannot read property ‘document’ of undefined”

Can you help me? Tnx (15.9 KB)