Im working on a client request where they want a ribbon action, called 'Copy Document Links', to, when clicked, show a modal pop-up with the url's of the selected document items. Which they can easily then copy out from.
So I have followed a guide to help place a custom ribbon action, and I am now just wondering how to approach the actual code side of this.
My initial thinking is to, when the button is clicked, use JavaScript to get the ID's of the selected documents in the list, find their URL's, and then show the pop-up (using this solution).
My main question is, where would I add this code? Somewhere in the CustomAction VS solution? Or in a javascript file on the site itself, which I then reference to?
Thanks!
js
file instead of writing the script "inline" in the action definition itself