Announcing the Global SNUG Board of Directors. Learn more here

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tiagomacul
Mega Sage
Mega Sage

How do I set short_description field your label  bold?

 

Images Description
find_real_file.png 01. >> System Definition > Client Scripts
find_real_file.png 02. New
find_real_file.png

03. Type information, in this case was used

incident table and short_description field

  04. Type script
find_real_file.png 05. Save / Submit

 

 

BEFORE:

find_real_file.png

AFTER:

find_real_file.png

 

 

Sample Script

function onLoad() {

 var l = g_form.getLabel('short_description');

l.style.fontWeight='bold'; }

 

 

obs: comments / work notes fields

 

	var Label = g_form.getLabel('comments');
	Label.style.color= 'red';
	Label.style.fontWeight='bold';

 

Note: Field styles are not applied to comments and work notes fields used with the activity formatter. Styles for these fields can be set using the glide.ui.activity_stream.style.comments andglide.ui.activity_stream.style.work_notes system properties located on the sys_properties table. source: field styles

 

Author:

Anna Abilio

Tiago Macul 

 

Wrote in New York release

Know-More-Now-Logo.jpg

Summary

Making labels in Service Catalog appear in bold and a larger font

 

=======================

By  

 

Hi,

  1. Create Label Variable for you catalog item
  2. Question Tab: for Question just type in a space (it must have something)
  3. Question Tab: Add unique Name for label 
  4. Annotation Tab: Check Show Help and Always Expanded
  5. Annotation Tab: remove default 'More Information' Text
  6. Annotation Tab: Instructions now type in whatever you want as HTML Label for example: Notes (Optional)

The variable will look as expected on the Service Portal :

tiagomacul_0-1698176724363.png

 

 

 

Comments
Allen Andreas
Tera Patron
Tera Patron

Hi,

Can you include a before and after photo?

tiagomacul
Mega Sage
Mega Sage
Hi Allen,
 
That's an excellent idea, was used.
 
Thank you
Allen Andreas
Tera Patron
Tera Patron

Nicely done!

sakshijain09
Tera Contributor

Hi,

 

Does anyone Know how to make text as bold in UI page client script. I have a requirement where I need to post that text on worknotes. For eg: TCD Change Reason: Value that we get from popup screen. 

So I need to make this TCD Change Reason as bold in client script of UI page

Version history
Last update:
‎10-24-2023 12:47 PM
Updated by:
Contributors