Forum Discussion

mwilliams71's avatar
mwilliams71
Copper Contributor
Dec 03, 2021

Adding an attachment control to a Custom Form in SharePoint 2016 on Premises

I've created a custom form, but the attachment button on the Ribbon is disabled. So I added an attachment button to the custom form and I'm getting the error of "Uncaught TypeError: Cannot read properties of null (reading 'insertRow')"

I used this article, but I'm getting the error above.

https://www.c-sharpcorner.com/article/upload-file-to-listitem-in-office-365-as-an-attachment-using-javascript-object-m/

5 Replies

    • mwilliams71's avatar
      mwilliams71
      Copper Contributor
      I get the error:
      Request failed with error message - File Not Found. Stack Trace - undefined
    • mwilliams71's avatar
      mwilliams71
      Copper Contributor

      Hello Joao. I tried Edge, FireFox, and IE. Neither works for me. The attachment button on the Ribbon does not work and the custom solution mention above, does not add the attachment.

    • mwilliams71's avatar
      mwilliams71
      Copper Contributor
      Thank you for the quick response Joao. I'm using Edge. Let me try Firefox.

Resources