0

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:

="http://mysharepointwebsite/myhomepage/_layouts/FormServer.aspx?XmlLocation=/cours/form/Request%20no%20"&NumRequest&".xml&ClientInstalled=false&Source=https%3A%2F%2mywebsite%2Ehec%2Eca%2Fmypage%2FForm%2FForms%2FMy%2520Requests%2520from%2520today%2Easpx&DefaultItemOpen=1'>Edit"

2
  • 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. Commented Nov 15, 2016 at 19:27
  • I will try this thankyou . I already have a view with the edit field i will try your solution.
    – djgibbs
    Commented Nov 15, 2016 at 19:37

1 Answer 1

1

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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