function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter BölkePeter Bölke 

Getting data from Iframe


i have an lightning component which holds an VF-Page as iframe. I want to read a specific field in this iframe.

it is simple HTML Textfield:
<input id="textfield" type="text" name="testtext" value="test"/>

is that possible?

In the component controller i tried simply:
var iframe = component.find("vfframe");
    console.log("IFRAME", iframe.getElement("textfield"));
but it is not working.

any ideas?