+ 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?


devin cafedevin cafe
Here the customers can provide feedback related to their latest dining experience. If you have recently visited Wawa Restaurant. then you can give your feedback at Wawa Survey.