My Adobe Animate canvas animation is sitting on a html page named index.html.
The index.html page has a html form with name and ID "form1" and this form contains a hidden field form control with name and ID: hfYear
Is it possible to get the text value of the form control 'hfYear' in Adobe Animate and display it in Adobe Animate using the Actions panel scripts?
Copy link to clipboard
So something like this should work:
console.log("from Animate", window.parent.parent.document.getElementById("hfYear").value);
Please let us know it this is what you want.
Thank you very much for your help!
Why the "window.parent.parent"?