Help Highlighting a table cell based on two table row values

  • 1
  • Question
  • Updated 1 year ago
  • Answered
  • (Edited)
I am using the snippet below to highlight table cell values based on the value of that cell. Is it possible to extend the if statement to also look at another set of values from a different table column? 

so if value === "my value" AND value2 === "my value2"

var field = arguments[0],    value = arguments[1],
   $ = skuid.$;
    if(value === "MQL - Customer/W Oppty"){
    if(value === "Passed to Sales"){
    else if(value === "Qualifying" ){
Photo of Josef Lagorio

Josef Lagorio

  • 3,022 Points 3k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,888 Points 10k badge 2x thumb

You can get the other field's value using something like this:

Your 'if' would look like:
if(value === "Passed to Sales" && (field.model.getFieldValue(field.row,'my_value2__c',true)) { 

Look here for an example of a custom field render that calculates a total: