question

Smith88-4820 avatar image
0 Votes"
Smith88-4820 asked Smith88-4820 answered

How to create an event handler without visual studio that will throw JavaScript alert message with the file name when a new document is uploaded to document library in SharePoint 2016?

How to create an event handler without visual studio that will throw JavaScript alert message with the file name when a new document is uploaded to document library in SharePoint 2016?

sharepoint-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

UPDATE: Is it possible to do this without Visual Studio. I do have SharePoint Designer.

[microsoft-sharepoint-what-are-event-receivers][1]https://www.datalytyx.com/microsoft-sharepoint-what-are-event-receivers/#:~:text=An%20event%20receiver%20in%20Microsoft,known%20as%20event%20receiver%20hosts.

0 Votes 0 ·
MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @Smith88-4820 ,

No, we cannot create an event handler without Visual Studio. With SharePoint Designer, we could only set email notification on file upload.

To achieve this, you need to use VS to create event handler.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Smith88-4820 avatar image
0 Votes"
Smith88-4820 answered

I have learned that I might can use JSOM to add watermark to a document upon document upload with JavaScript, by creating an HTML form in a web part content editor? Is this possible? Can you provide any thoughts on this idea? Thanks.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.