SOLVED

Display iFrame in Body of Sharepoint Form

Copper Contributor

Not sure if this is possible. If I have an iFrame embed code for a document in a sharepoint library, can I render that iframe in the body of Sharepoint list form? Is there an elmtype that would work? Code samples desperately welcome. 

2024-04-22_10-59-55.png

3 Replies
best response confirmed by Jared Bennett (Copper Contributor)
Solution

@Jared Bennett 

 

Unfortunately, No. This is not possible using SharePoint list JSON formatting.

 

Check:

  1. SharePoint JSON formatting supported elmType 
  2. List form body customizations do not support all JSON formatting functionalities like header/footer formatting or column/view formatting: SharePoint JSON formatting - configure custom body with one or more sections 

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Does that mean I could potentially pull it off in the header or footer? Just curious if the restriction is form wide, or specific to the Body field?

@Jared Bennett 

 

You cannot render it in form header/footer as well.


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

1 best response

Accepted Solutions
best response confirmed by Jared Bennett (Copper Contributor)
Solution

@Jared Bennett 

 

Unfortunately, No. This is not possible using SharePoint list JSON formatting.

 

Check:

  1. SharePoint JSON formatting supported elmType 
  2. List form body customizations do not support all JSON formatting functionalities like header/footer formatting or column/view formatting: SharePoint JSON formatting - configure custom body with one or more sections 

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

View solution in original post