0

Is there a way to rename the Like/Unlike links in a custom list where rating has been enabled?

'Like' in our case would be misleading so we would like to have it show up as something like 'Confirm'.

enter image description here

1

You can use Client Side Rendering (CSR) for such requirements in SharePoint 2013.

Below is the code sample which replaces Like button by a image stored in Style Library:

SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() {
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
      OnPreRender: function(ctx) {
          SP.UI.Reputation.LikesHelpers.ImageUrls.$W = "/Style Library/hand-like-32.png";
          SP.UI.Reputation.LikesHelpers.ImageUrls.$X = "/Style Library/hand-like-32.png";
      }
    });
});

You can find a full code and explanation at: Custom “Like”-Button in SharePoint List .

Check my answer given here to know how to set the JSLink property of your Web Part:
Color Coding List Item by Web Part based on value

  • 1
    Was hoping for a 'simple' solution but this will do :) Thanks! – AM2FTW Nov 20 at 12:01
  • 1
    Welcome. Glad it worked for you. – Ganesh Sanap Nov 20 at 12:02

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.