Hello,
I’ve hit a bump! I’m trying to create a calculated column which will display a picture(A). When that picture(A) is clicked I want the picture to switch to picture(B). Ive tried the following line, but I’m getting nowhere with it. Please help! I’m using Sharepoint 2013
=IF(ISBLANK(Status),"",("<A HREF="&Status&" onclick='changeImage().src='picture(B)'>
<img src='Picture(A)' style='height:45px; width:90px;' /></a>"))
=IF(ISBLANK(Status),"","<IMG onclick='this.src=""pictureB""'>
src='PictureA' style='height:45px; width:90px;' />")
I answer most of these questions on http://sharepoint.stackexchange.com/
hardly ever check this SP Community as the search here just sucks
Since you are using SP2013, have you tried JSLink: https://zimmergren.net/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013/
It might be a more viable solution.