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"

  • 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
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

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.