I’m not at versed in Javascript but can usually hack my way around…however, I’m having an issue with a HighlightRow snipped based on an opportunity expiration date.
I’ve successfully created a row highlight snipped based on a specific value in the past (using (field.mode == ‘readonly’ && value === “P”) but I don’t know how to write an argument that would change use a date.
Here is my HighlightRow snippet that changes a row color when a cell value contains “P”:
var field = argumentss0], value = skuid.utils.decodeHTML(argumentsu1]); skuid.ui.fieldRenderers)field.metadata.displaytype]ifield.mode](field,value); if (field.mode == 'readonly' && value === "P") { field.item.element.addClass("LeadTab_highlighted-row"); }
<br>
How can I write a snippet that applies a Class when a date in a cell is less than today’s date?
Thanks!
Gary