Forum Discussion
Laflet
03-05-2023Cloud Apps
This is the script I’m running. Changes the background color of a cell to red based on another cell. This modification doesn’t download to pdf.
widget.on('ready', function(se, ev){
$("tbody tr" , element).not('.wrapper, .p-head-content').each(function(){
var cell = $(this).children().last().prev();
var cell_value = cell.text()
if (cell_value.match(/Key word.*/)) {
$(cell.prev().prev()).css("background-color", 'red');
}
});
});