The iframe size in the editor is different from the iframe size in the preview
For a template w/ HTML, I wrote:
<iframe src="https://app.webpt.com/patientChart.php?ID={{WebPT_ID__c}}"; width="100%" height="1000"> </iframe>
The dimensions work in the builder but not in the preview. Any suggestions?


<iframe src="https://app.webpt.com/patientChart.php?ID={{WebPT_ID__c}}"; width="100%" height="1000"> </iframe>
The dimensions work in the builder but not in the preview. Any suggestions?


1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
That shoudl fix your problem.
One day I'll have you explain to me why that works, but for now I'll accept it dogmatically. :-)
I'm struggling to implement even the most basic iframe in a template component. We're talking <iframe width="99%" height="600" src="http://www.google.com.au" /> here as a test.
I can't get any content to display in the iframe, however "invalid" data for the "src=" parameter produces Salesforce's "URL no longer exists" error message.
Would this have to do with my Org's security settings, or where would I start troubleshooting it? The inspect element code of the rendered page is <div class="nx-template"><iframe width="99%" height="600" src="http://www.google.com.au"></iframe></div>.
I might be missing something very obvious here! "Allow HTML" and "do not run template on each row" are selected. The model I picked for the template is the "User" model, which is loaded on page load and has data in it, but I also tried other models with the same result.
Page include components which reference other Skuid pages render without issue.
Any help is greatly appreciated!
Thank you,
Robin
It's most likely the case that Google blocks the use of iframes for it's site for security reasons. Many of the big sites will do that. Try a smaller, less common site and it will likely work.
-G
Thanks for helping out. I just tried different domains including our company site, still no joy unfortunately. Great thinking though, didn't consider that possibility.
Forgot to mention (and hope this is the problem!): I am running the Superbank release, are iFrames still disabled in the beta?
Much appreciated,
Robin
Robin