Skip to main content
Nintex Community Menu Bar
Question

Highlight row based on duedate (task)

  • July 11, 2024
  • 1 reply
  • 1 view

Forum|alt.badge.img+2

Trying to make a table row background color red when the duedate < today.

The below snippet/CSS combo was working for about 5 minutes but has not worked since. I am not very familiar with JS, so I am having trouble resolving. What am I missing?

Snippet:
var params = arguments[0],
$ = skuid.$;
var field = arguments[0],
value = skuid.time.parseSFDate(skuid.utils.decodeHTML(arguments[1]));
value.setHours(0,0,0,0);
var today = new Date();
today.setHours(0,0,0,0);

skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode
 
if (field.mode == ‘read’ && (value < today()))
    { 
        field.item.element.addClass(“red-row”);
 }

CSS:
table.nx-skootable-data tbody tr.red-row td {background-color: #E79A8E;} 

Translate
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+6

Hi Scott, could you please share which Skuid version you are using at the moment? 🙂

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings