I want to set conditional formatting on the Priority field on the standard Task object. If the priority is High, I want to add a class to the HTML element so that I can apply custom CSS through the class. I’ve read various posts here that are similar to this need, but I’m having trouble extrapolating from them. My attempt so far is to use a custom field renderer on the Priority field in my table of Tasks and to call the JQueryUI function addClass(). Here’s my inline snippet that I’m using as the custom field renderer. Am I in any way on the right track? var field = arguments[0], value = arguments[1]; if (field.mode == ‘read’ && field.value == ‘High’) { field.addClass(“highpriority”); }
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.