Skip to main content

Is it possible to conditionally format a text field to a certain color when the text value is a specific entry?  For instance, RED text when the value is “incomplete”…

Setup a custom field renderer like this:


var field = arguments[0],&nbsp; &nbsp; value = arguments[1],<br>&nbsp; &nbsp;$ = skuid.$;<br>if(field.metadata.accessible){<br>&nbsp; &nbsp; if(value === 'incomplete'){<br>// do CSS stuff here...<br>&nbsp; &nbsp; &nbsp; &nbsp; field.element.css({'background-color':'#F19A00','min-height':'10px'});<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);<br>}&nbsp;

Very nice, Moshe! 

There’s more information about Custom Field Renderers here: http://help.skuidify.com/m/11720/l/204496-table-component-custom-field-renderers

-Josh