I am attempting to have an image show up when a record is has a yes/no field as Yes(true).
I have implemented this before on an option set and it works perfect. But I have the Contact table and I added a Yes/No "VIP" column and I would like to have a gold star show up when it is Yes(true)
IDEALLY, I would love to have this image in the Full Name column next to the name based off of the VIP status, but I am unsure if that is possible.
//contact vip status function contactVIP_star(rowData, userLCID) { var str = JSON.parse(rowData); var coldata = str.cyb_vip_Value; var imgName = ""; var tooltip = ""; switch (coldata) { case 1: imgName = "cyb_GoldStar"; tooltip = str.cyb_vip; break; default: //default imgName = "cyb_red"; tooltip = "X"; break; } var resultarray = [imgName, tooltip]; return resultarray; }
Any help is appreciated, also, if any additional code/information is needed please let me know.