How to make the Label in service portal red
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 07:02 AM
Hi I have a label "Please Make attachment mandatory" and I need to display this text in red. Can anybody please let me know how I can achieve that
- Labels:
-
Field Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 07:09 AM
Hi try creating an on load client script
function onLoad() {
var Label = g_form.getLabel('u_llabel_name');
Label.style.color= 'red';
}
** sorry missed the portal part why not add to the maintain item description field which is a html field or if variable is label just add the html tags in the question field for example <FONT color=red><STRONG><U>Please Make attachment mandatory</U> </STRONG></FONT>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 07:09 AM
Hi,
Is this with a specific widget? Can you give a bit more details? Screenshot even?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 07:29 AM
its just a label. I need to display label text in red

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 03:03 PM
Hello Anuravi23,
I'm going to second what MK83 said above; You should consider using the description field on the catalog item. This is an HTML field and supports making text bold, italic, underlined, red, green, etc. There isn't an easy way to make a single label a different color on the portal today.
Please mark this post "Helpful / Answered" if this helped you.