You are viewing limited content. For full access, please sign in.

Question

Question

Saving Form With Embedded iFrame Document to Repository

asked on September 18, 2023 Show version history

Hi all,

I believe that this question has been asked before but, after reading various posts on this topic, the answer is still not clear.  If you embed/display a repository document in a form using an iFrame, when you save that form to the repository the document in the iFrame is not visible in the saved document.  Is there any way to remedy this?    

Discovered after some testing that if the iFrame embedded file is an HTML file, it does in fact display in the saved repository document.  However, my need here is to display an embedded PDF or perhaps an image file like a JPG or TIFF, still shows as blank.

0 0

Replies

replied on September 19, 2023

How did you embed your file? weblink or other ways?

 

When you upload image files by a file upload field, those image files can be displayed in repository successfully. (like screenshot)

 

0 0
replied on September 20, 2023

Thanks for your reply.  The file I'm needing to display in an iFrame and save to the repository is not an upload on the form.  It is a file stored on a web server.

0 0
replied on November 17, 2023

If you want to display an image except the TIFF type, we recommend you to use <img> tag instead of iframe. For TIFF type, it depends on your browser according to https://stackoverflow.com/questions/2176991/how-would-i-display-a-tiff-images-in-all-web-browsers.

 

As for using iframe to embed PDF documentation for repository related task, we've file a bug with ID 496709 to track it. But I haven't figure out a good workaround. 

0 0
replied on November 20, 2023
0 0
replied on November 21, 2023

Hi, I'm not clear on what your response indicates in regard to my original question which was saving a form to the repository when the form has a file displaying in an iFrame.  Please clarify.

 

0 0
replied on November 22, 2023

In summary, iframe cannot be used to display some file types. These types are not supported displaying in <iframe> tag due to browser does not support it, like PDF/TIFF. 

And these file types display successfully for me on Forms 11u4 when saving a modern/classic form to repository, like .JPG and .PNG. Below are the example html and result in repository.

<p>From https://bellard.org/bpg/2.png</p>

<iframe src="https://bellard.org/bpg/2.png" width="700" height="375">
</iframe>
<p>From https://upload.wikimedia.org/wikipedia/commons/e/ee/Sample_abc.jpg</p>

<iframe src="https://upload.wikimedia.org/wikipedia/commons/e/ee/Sample_abc.jpg" width="700" height="375">
</iframe>

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.