Skip to main content

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 = argumentsn0], value = skuid.utils.decodeHTML(argumentsn1]); skuid.ui.fieldRenderersefield.metadata.displaytype]pfield.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

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


Reply