0

Is there a way to directly send an item link by email?

I have a SP2013 based EDM. I know that docs URL are available in a popup, but I don't want to copy/paste link: I would like to be able to click on a button in ribbon/popup that opens email client with embeded link.

Thanks for your help!

Edit: this is the current view that I need to improve: there should be either an email button in the popup view or in the ribbon when item is selected

current view

  • Edit: I need the button to be available in list view. – Othella Dec 15 '14 at 14:40
1

You can add custom action to the list callout according to this article.

In a nutshell:

function myCallback()
{
    var link = window.location; // for current item you can probably get this from  renderCtx, can't test right now
    var emailSubject = "email subject" // Here you can add article title, or just static string
    window.location = "mailto:?Subject=" + escape(emailSubject) + "&body=" + encodeURI(link)
});


function AddCustomAction (renderCtx, calloutActionMenu) {   
  // Add your custom action
  calloutActionMenu.addAction (new CalloutAction ({
    text: "Email",
    tooltip: "Email link to item",
    onClickCallback: function() { myCallback(); }
  }));

  // Show the default document library actions
  CalloutOnPostRenderTemplate(renderCtx, calloutActionMenu);
}
  • Thank you for the response. I forgot to say that I need the link to be available from the list view. – Othella Dec 15 '14 at 14:39
  • Would putting the button to system master page in that case work for you? – Jussi Palo Dec 15 '14 at 15:12
  • Nope... I think I need either injecting JS to the info popup window of an item or a custom action with a button in ribbon. But I don't know exactly how to manage it. – Othella Dec 15 '14 at 15:35
  • If you mean the popup dialog when you add/edit item, those forms you can modify using SharePoint Designer, it's either the NewForm.aspx or EditForm.aspx of the list. – Jussi Palo Dec 15 '14 at 15:48
  • I mean the popup dialog in the list view (see my post edit) – Othella Dec 15 '14 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.