- 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 05:03 AM
I want to make it on the form ALSo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 04:14 AM
Hi Sneha Binani
Thanks for the reply
I do not want to change the background color of the field, infact what all written inside the field should be of different color (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:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 04:54 AM
Hi Amlan Pal
This Works well when 'value' field is empty as is your case. but when i am giving condition in value this do not work