I need to add both a custom ribbon button to change a field value of all selected items in a list/list-webpart and I'm interested in creating a custom action in the ECB (context menu) and hover panel that shows up over documents to do the same thing.
What is now the proper way of doing this because I'm seeing old examples show Custom Action Ribbon
as a template in Visual Studio that's completely configured with an XML, but that template doesn't exist in VS 2015 (MS Dev Tools is installed) and now I'm seeing newer tutorials talking about doing it all through JavaScript using JSOM / REST.
So which is it?
Is the JS script suppose to run every time the site loads or just once to add the custom action? And if it's just once, I'm I suppose to do a check every time to see if this custom action has already been added?