sys_display is not working in employee center form widget

vinuthna16
Tera Contributor

Hi Team,

I am trying to change the background colour of a reference field but it is not showing in the form widget employee centre.

 

 

var myVar=$('sys_display.'+g_form.getControl('u_caller').id);
   myVar.style.backgroundColor='red';
 
How can I make it work in employee centre.
Thanks
Vinuthna
2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@vinuthna16 

the above code is DOM manipulation so it won't work directly in portal

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur

Please suggest any other method to implement this i.e color change to apply in form widget.

Thanks,

Vinuthna