for the life of me I can't seem to figure out how to call a variable from a form I inserted into an html widget and/or a rectangle. I have tried a few suggestions but nothing seems to work. Variable "TestVar" is set in the form via an html widget. When it is set I want its result to show in a text box with an Id called "myVar" using the var bob. I know it is goofy but I am just trying to get my head wrapped around this.
Some of the code I Am currently using is as follows.
//var bob = hypeDocument.getElementById('TestVar');
var iframe= hypeDocument.getElementById('theWidget').children;
var iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
var bob = iframeDocument.getElementById('TestVar')
hypeDocument.getElementById('myVar').innerHTML = bob;`