- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 03:55 AM
Hello experts,
How can we change the color of text in the field?
I tried
var myVar = $('sys_display.' + g_form.getControl('cmdb_ci').id);
myVar.style.setStyle({color: "white"});
but this do not works.!
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 05:52 AM
Hi Amlan Pal
With the help of Client script able to change the color of the text.
var myVar = $('sys_display.' + g_form.getControl('cmdb_ci').id);
myVar.setStyle({color: "white"});
The problem was (.style) which i added out of no where.
Still trying to figure out why on earth i did that.
Thanks for the help
Cheers
Regards
Neeraj Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 03:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 04:08 AM
Thanks for the reply
I think field styles affect the list layout only. I want to change the Text color of the field in the form (let say everything written inside short description should be red)
Regards
Neeraj Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 04:54 AM
Hi,
Nope it's not only list. "Field styles allow you to declare individual CSS styles for a field in a list or form."
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 05:02 AM