web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Custom Icon in List View with Yes/No

(0) ShareShare
ReportReport
Posted on by 2

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.

I have the same question (0)
  • Bahalzamon Profile Picture
    2 on at

    Figured it out

    Adjusted the coldata to pull the actual data vs the value and the Case was a "Yes" and "No" not the values of 0 and 1 or true/false.

    //contact vip status
    function contactVIP_star(rowData, userLCID) {
        var str = JSON.parse(rowData);
        var coldata = str.cyb_vip;
        var imgName = "";
        var tooltip = "";
        switch (coldata) {
            case "Yes":
                imgName = "cyb_GoldStar";
                tooltip = str.cyb_vip;
                break;
            default: //default
                imgName = "";
                tooltip = "";
                break;
        }
        var resultarray = [imgName, tooltip];
        return resultarray;
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans