Help Highlighting a table cell based on two table row values

  • 1
  • Question
  • Updated 2 years 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,394 Points 3k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 13,602 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: