-1

I need a code in sharepoint online, that triggers a script to open a file, where the location of file in local computer. In my opinion, this code like button/image/hyperlink/etc, in the background is Javascript/JQUERY (event click) and this button will be placed in a specific column (in the example below the name of column is "FileLocation") in sharepoint list / sharepoint document library. like screen shoot below.

My SharePoint Online List

react_or_angluar
  • 1,568
  • 2
  • 13
  • 20
farid wahyu
  • 81
  • 1
  • 11

1 Answers1

0

You can insert JS/Jquery script or change the Dom elements on the field through SPFx Field extension.

And you can open lcoal file using js as below:

Besides, some browsers will specifically block local file access this way for security reasons.

BR

Baker_Kong
  • 1,739
  • 1
  • 4
  • 9