I'm experiencing a lot of grief trying to submit a formTemplate and capture the submitted textField value. I'm used to (in Javascript) being able to say "document.getElementById(`:id`)" and adding a function to be called with an event object passed through. Basically what I'd like to do is this:
formDoc.getElementById(`textField`).addEventListener(`change`, function(event) {
console.log(event.target.value);
});the formDoc is my .tvml document that's been returned from my XHR request and I know that's working fine because i've got it in the navigation stack. What I can't get working is the binding of the event listener, but I also can't figure out why when I log the formDoc that's been pushed into the navigation stack, it has no children nodes, it just returns an empty IKDOMDocument.
Can someone set me straight? I know this is a bit all over the map...
Thank you