Issues with overriding default font and size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 07:42 AM
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:
Right click on the field name and select 'Configure dictionary'
In the default value field I entered:
<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>'); }