I want to set the color of text in short description field and choice list field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2014 02:47 AM
Hi,
I want to set the color of text in short description field and choice list field.,
I have trid below code but its not working.
var shortdescriptionField = $('sys_display.task.short_description');
shortdescriptionField.setStyle({color: "red"});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2014 02:56 AM
Can you try this -
g_form.getControl('field_name').style.backgroundColor = 'blue'; //Set the background color of a field
g_form.getControl('field_name').style.color = 'white'; //Set the text color of a field
g_form.getControl('field_name').style.fontWeight = 'bold'; //Set the text font to bold

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2014 03:04 AM
Hi Ganesh, You can do this using a field style for Incident table field Short Description as given below.
Table : Incident
Field Name : Short Description
Value : Leave Blank Style : color:Red
I am assuming that you want to set the color of text in short description field. If you want to set the background color use "background-color:Red".
Rajnish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2014 04:36 AM
Hi Ganesh,
Field Style is the best solution as mentioned by RKumar if if is String field without choice as background color is not applicable for choice fields on form though it is visible in List Layout.