Forum Discussion

Jared Bennett's avatar
Jared Bennett
Copper Contributor
Apr 22, 2024

Display iFrame in Body of Sharepoint Form

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. 

  • 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.

    • Jared Bennett's avatar
      Jared Bennett
      Copper Contributor
      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?
      • ganeshsanap's avatar
        ganeshsanap
        MVP

        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.

Resources