Highlight Headline from Checkboxes in Attribute Key List

Hi everybody,

in a previous article Jeff Richards told us how to make a border around a Checkbox in the Key Attribute Lists.

crm.ready(function () {
var queryVariables = crm.getArgs()
if (queryVariables.Act == 1272) {
var jTags = $("img[src*='FilledCheck.gif']");
jTags.each(function () {
$(this).css('background', "green");
})
}
})

I want to highlight the headline of the Checkbox and i dont get it how i could do this.

Hope anybody could help me.

kind regards from germany

  • 0

    Dear Oliver ,

    From your above post we understood that, you need to highlight the Checkbox Heading (Caption). You can use the below code snippet to achieve the same.

    crm.ready(function ()

    {

    var queryVariables = crm.getArgs()

    if (queryVariables.Act == 1272)

    {

    var jTags = $("img[src*='FilledCheck.gif']");

    jTags.each(function ()

    {

    $(this).css('background', "green");

    crm.fields(($(this).attr('name'))).caption().highlight();

    })

    }

    })

    Hope this will help you.

    Regards,

    Dinesh

  • 0

    Hello Greytrix,

    thank you for the fast reply on this post.

    The captions are now highlighted but every caption with a checkbox is highlighted.

    We want to try that only the captions of the checked boxes are highlighted.

    I think the problem is that the captions has all the same ID's. So it's not possible to highlight then.

  • 0

    Oliver

    I will be possible. You just need to think through the logic.

    You want to highlight the with an ID that is next to the that contains the 'checked' checkbox.

    You have to find a way of expressing that using JavaScript or JQuery.