Hello there, I am trying to high a field based on values from another picklist field. The highlight is only working when the user changes the field. It does not work when if there are no changes to the field. Below is my In-Line snippet does anyone knows what I need to change to make this work. Thanks
var params = arguments[0], $ = skuid.$; var model = params.model;
var row = params.row;
console.log(params);
var field = arguments[0],
value = skuid.utils.decodeHTML(arguments[1]);
skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;
var cstatus = params.row.Charter_Status__c;
var statusColors = {
‘Order Entry’ : ‘Yellow’,
‘Base Camp’ : ‘Yellow’,
‘PO Pending’:‘Yellow’,
‘Scheduling’:‘Yellow’,
‘Scheduling CCC’:‘Yellow’,
‘Current’:‘Green’,
‘Review’:‘Green’,
‘Cancelled’:‘Red’,
‘Customer Hold’:‘Red’
};
var defaultColor = ‘White’;
$(‘.nx-basicfieldeditor-item.ShareWithCutomer’).css(‘background’, statusColors[cstatus] || defaultColor );
Question
Highlight a field based on Value on another field

Translate
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.