I want to render a visualforce quote pdf in a iframe inside of LWC component. I am facing issue in passing the record id to the vf page & render it in vf. What steps I have to take to resolve this issue ? @Sebastian Gozdur @* Salesforce Developers * #LWC
this is the code iframe I am using:
<iframe src="/apex/newquote?'+'quoteid='+{recordId}" height="100%" width="100%"></ifra
me>
2 respuestas
You will need to use postmessages to pass the message between LWC and Visualforce iframe.
Check this blog
https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication