The CreatorCon Call for Content is officially open! Get started here.

Issues with overriding default font and size

Ignas
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: 12pt;"><br></br></span></p>

It seems to work, the only problem that the user found while testing is that if they start entering text and deletes all of it it switches back to system default font style and font size.

I have been trying to find a work around here and tried to set up a onLoad Client Script with the following code but it doesn't seem to resolve this

 

function onLoad()

{ g_form.setValue('variable_name_goes here', '<p><p style="font-family:verdana", "font-size:12pt;"></p></p>'); }

0 REPLIES 0