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.

Set Default Font Size on Knowledge Articles not working

crisking
Tera Contributor

I have a request to force specific font style and font size on a couple of HTML fields within knowledge article form. So I thought this will be a simple one. I followed these steps:

  1. Right click on the field name and select 'Configure dictionary'

  2. In the default value field I entered:

    1. <p><span style="font-family: verdana; font-size: 10pt;">&nbsp;</span></p>

It seems to work, the only problem I can see is if we delete all text than it switches back to system default font size.

1 REPLY 1

Paul Curwen
Giga Sage

I'm afraid you will have to live with that as it's not possible to start with a totally empty field and have a default font, if you first delete all content as the editor will not accept an empty paragraph tag that only has a font size in it. By removing all the content you are effectively removing the <p> tag which sets the default font, that is why the &nbsp is there. 

 

If helpful please mark as Helpful/Correct. 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul