I want to use and image instead of a text in a field. see this image enter image description hereThe edit column its a calculated column. If users click on it. It will opens the editform.aspx. So i want to use an image instead of have a text labelled Edit. but clicking on the image should also open the editform.aspx. Here's the custom code of the calculated column:


  • Can't you just add the Edit field to your view? Edit the view and tick the Edit field, this is standard built in functionality. – Eric Alexander Nov 15 '16 at 19:27
  • I will try this thankyou . I already have a view with the edit field i will try your solution. – djgibbs Nov 15 '16 at 19:37

Add Calculated field in list and add this type of formula

="<a href='https://<Domain>.sharepoint.com/Lists/date%20diff/EditForm.aspx?ID="&ID&"'><img src='/SiteAssets/edit.png' style='height:20px; width:20px;'/></a>"

enter image description here

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.