Working With iframe In SharePoint Server 2016 And SharePoint Online

Iframe stands for inline frame. 

iframe support was introduced from SharePoint 2013 onward. 

With iframe tag, we can embed Ardoq Presentations and Surveys inline within the current SharePoint page. 

An iframe can be marked up as -

<iframe width="100%" height="600" src=" Ardoq Presentation or Survey URL here starting at HTTPS"  allowfullscreen></iframe>

We can set the frame border, width, height and other iframe attributes to define the presentation of the content on the page.

The src (source) attribute within the iframe tag is used to specify the URL of the Ardoq Presentation or Survey that occupies the inline frame.

In order to use iframes within SharePoint, we have to make some configuration entries. 

If we are using any external domains within the iframe, it should be added as an approved domain in “HTML Field Security” section, in the site collection settings page.
This is the recommended approach from Microsoft.

Set Approved Domain (SharePoint Administrator Permissions Required)

In order to add your custom Ardoq domain <yourcustomdomain>.ardoq.com to the approved list of domains, select “HTML Field Security” from Site Collection Administration section.

If the domain <yourcustomdomain>.ardoq.com is not present in the below list, type the domain and click on ‘Add’. 

Ensure that the radio button “Permit contributors to insert iframes from the following list of external domains into pages on this site” is selected.

Get the Embed Code

Once the domain <yourcustomdomain>.ardoq.com has been added to the Approved set of domains, embed the Ardoq Presentation and/or Survey in your page. 

Embed Content

We will add the embed code in a new page. Add the page and go to the edit mode on the page.

  1. On your SharePoint page, make sure you're in Edit mode. If you're not, click Edit at the top right of the page.
  2. If you don't already have an Embed web part on your page, hover your mouse above or below an existing web part or under the title region, click -+- symbol and then select the Embed </> web part from the list.

Want to know more about embedding into SharePoint, pop over to the official SharePoint site - https://support.office.com/en-us/article/add-content-to-your-page-using-the-embed-web-part-721f3b2f-437f-45ef-ac4e-df29dba74de8

When you select the Embed code it will open up the pop up where we can paste the iframe tag mark up.

<iframe src="Ardoq Presentation or Survey URL here starting at HTTPS" width="100%" height="600"></iframe>

Publish the page.

Did this answer your question?