I trying to create a logic either using SharePoint JSOM and jQuery/JavaScript that will execute whenever a user tries to open a document and force user to acknowledge the document and record the acknowledgement based on the user confirmation. acknowledgement record will be captured in List available on the same SharePoint site.
Lets say, the user go to the library and lick on one of the policies, I would to have a windows prompt asking the user to acknowledge the document.
A colleague of mine implemented something similar in the past for a employee handbook. I was able to get the java scripts he used but I cant seem figure it out.
here is what I'm trying to accomplish.
- User click to open a document on a SharePoint library
- A window prompt open and ask the user to acknowledge that they have read the document.
- user click OK and the windows prompt close and document open
- User name and document name/tile is save to a List.
Any help or if there is a better way to accomplish the same would be greatly appreciated.