Adding a custom action to a callout based on the file type
Back in October 2013 I wrote a post on how you could add your custom actions in a callout like this ([Adding a custom action to a callout in SharePoint 2013](https://www.eliostruyf.com/adding-a-custom-action-to-a-callout-in-sharepoint-2013/ "https://www.eliostruyf.com/adding-a-custom-action-to-a-callout-in-sharepoint-2013/")): {{}} This time I had the requirement to only add an action for a specific file type. ## Solution The solution is rather simple. Here is the code from my previous post: ```javascript SP.SOD.executeFunc("callout.js",