The CreatorCon Call for Content is officially open! Get started here.

Set Assigned to field font color on SCTASK Form

Joshua Comeau
Kilo Sage

Any ideas on why this business rule is not working?

 

JoshuaComeau_0-1717501921501.png

 

JoshuaComeau_1-1717501937501.png

 

3 REPLIES 3

Mark Manders
Mega Patron

Because a BR runs server side and you are trying to run client side code. Try it as client script (with your conditions):

function onLoad() {
    var control = g_form.getElement('assigned_to');
    if (control) {
        control.style.color = "red";
    }
}

  


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ah right and also now that I am thinking about it, since I have added a condition I think I need to place function onCondition() not onLoad

 

I will try this thanks!

Hi, I have copied this script into catalog client script. This script can update the color into requested item (back end) but not getting updated into Service Portal. pls advise.