Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How Can I Set a Default Font Family and Font Size for HTML Fields in Knowledge Articles?

SandeepKSingh
Kilo Sage

I want to ensure that all HTML fields in my Knowledge Articles have a consistent font family and font size. Could someone provide guidance on how to apply these default styles across all Knowledge Articles? Any help with implementing this would be greatly appreciated.

 

2 ACCEPTED SOLUTIONS

Bhavya11
Kilo Patron
Kilo Patron

Hi @SandeepKSingh ,

 

You can right click the "text" html field and choose "Configure dictionary". Then insert this into the default value

 

then add this in default value <p><span style="font-family: arial ; font-size: 14pt;">&nbsp;</span></p>

Then all new knowledge articles will start with this font size and font family.

 

 

Please, remember to mark Correct or Helpful if you find my response useful.

 

 

Thanks,

BK

View solution in original post

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 

Try the below code :-

<p><span style="font-family: serif, sans-serif; font-size: 12pt;">&nbsp;</span></p>

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

9 REPLIES 9

Never mind... figured it out. if you use this as your default value <p style="font-family: arial ; font-size: 12pt;"></p> the asterisks will be gray like it is filled out but will still act like it is mandatory.

This is not my experience. I'm finding I can save with required HTML fields appearing blank when I have the font and font size set as a default value. We are on Yokohama. What version are you on?

Are you only using this as the default value.

<p style="font-family: arial ; font-size: 12pt;"></p>

This our default value: <p><span style="font-family: Verdana; font-size: 10pt;">&nbsp;</span></p> I'll try taking out the unnecessary bits and see what happens.

Interesting finding. I changed the default value to <p style="font-family: Verdana ; font-size: 10pt;"></p> and tested in UI16 - worked as you described. 

Tested in SOW, no enforcement on mandatory HTML fields with the default value set. 😞