i'm trying to color a text on a subform object. I've already managed to do it on a browse form:
The code to do it:
Code: Select all
if (nuFormType() == 'browse') {
$('[data-nu-column="8"]').each(function (index) {
var cellId = $(this).attr('id');
var cellValue = $('#' + cellId).html();
var rowNum = String(cellId).split('_')[1];
if (cellValue === "1") {
$("div[id^='nucell_" + rowNum).css("color", "blue");
}
else {
}
});
}
Now I'm trying to do the same on a subform display object. I've tried to add this custom js code on the subform display object:
Event: onload
JS:
Code: Select all
if ($('#contact_plus_la') === "1") {
$('#contact_nom').css("color", "blue");
}