sys_display is not working in employee center form widget
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 08:07 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 09:54 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 12:03 AM
Hi Ankur
Please suggest any other method to implement this i.e color change to apply in form widget.
Thanks,
Vinuthna