Skip to main content
Nintex Community Menu Bar
Question

How can I highlight a table row if a cell is blank?

  • July 9, 2024
  • 1 reply
  • 0 views
  • Translate

Forum|alt.badge.img+7

This is closely related to this posting from awhile back.  

I am able to successfully get a table row to be highlighted based on a specific cell value.  However, I am unable to get a table row to highlight when a cell value is blank.  

Here is my snippet:

var field = arguments[0], value = skuid.utils.decodeHTML(arguments[1]); skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value); if (field.mode == 'read' &amp;&amp; value === "" ) { field.item.element.addClass("LeadTab_highlighted-row"); }<br>

Again, this works just fine if I put a value in the " value === “” " segment, so I know my css is correct.  I’m sure I’m making a very basic mistake but I know very little about javascript.  

Thanks!

Gary

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

1 reply

Forum|alt.badge.img+18

You could try (field.mode == ‘read’ && !value)

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