Displaying a PDF in an IFrame

How would we go about displaying a PDF in an IFrame in a mini application?

I see, from the help, you need to:

  • Setup a Content Item Definitions item
  • Setup Common Context for the Source URL
  • Setup an object data item for the display/iframe??

Is there another step to link them together so when the URL if filled in, the iframe displays the PDF? Any steps/tips on this would be appreciated to get this working.

Thank you.

@claire.minnaar in lieu of pursuing this approach, I would recommend you first investigate using Inline Attachments if the PDF in question is going to be attached to the record you’re working on.

However if the PDF exists outside of Nextworld, my understanding is the approach discussed should work. My understanding is Nextworld considers using iFrames as a ‘last resort’ and only supports them in a limited fashion.

Are there any reference iFrame cards for us to look at? I created a content item (source url), then created a dashboard card (iFrame), but it isn’t displaying correctly in the UI. Any tips or tricks? I’m not sure how the common context mentioned in the help plays in?

@nate does this page help you at all? It has a specific example mapped out. https://community.nextw.com/t/how-to-set-up-an-iframe-on-your-application/1247?u=bethany.k

1 Like

That helped! Thanks Bethany!

1 Like