How to change the default source code in the html boxes

Hollydayray
Tera Contributor

We would like to change the default source code in our html boxes from unordered lists and ordered lists having a style tag that sets the position to "inside".

This is the default now: <ul style="list-style-position: inside;"></ul> and <ol style="list-style-position: inside;"></ol> We are trying to get the html boxes to default to: <ol></ol> and would like to get rid of this extra style setting.

3 REPLIES 3

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Hollydayray ,

 

If you want to change it on field level

In the Default Value field, you can define custom HTML/CSS.

  • Example: Set a clean <ol> or <ul> without inline styles.
  • You can also define font size, line height, etc

 

if you want globally you need to modify the property

  • Look for: glide.ui.html.editorOmkarKumbhar_0-1755192179100.png

     

    Thank you,Omkar
If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

Omkar, you are right about the specific Default Value html field overriding the font, size, and color but for some reason the <ol> styling does not override what is set internally by ServiceNow. 

 

Hollydayray_1-1755202087254.pngHollydayray_2-1755202112070.png

 

Shashank_Jain
Kilo Sage

@Hollydayray ,

Can you please elaborate what the exact business requirement is.

You can also attach screenshots  where and what exact changes you need that would be helpful.
 
If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain