Is it possible to change text to different font styles???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 12:22 PM
Hi All,
We have written client script to prefill the text on font italic like below screenshot for few fields on change form.
Now when we type any text for those fields --- it should be in Normal text.. How to translate input text font style to normal text instead of italic.
Here is the onload script i have written to prefill the text for few fields :
Client script
function onLoad() {
var shortdescription = "short summary of what will be done under this change record";
var description = "List the planned activities : \n";
g_form.setValue("short_description",shortdescription);
var sd = g_form.getControl('short_description');
sd.style.color = 'black';
sd.style.fontStyle = 'italic';
g_form.setValue("description",description);
var des = g_form.getControl('description');
des.style.color = 'black';
des.style.fontStyle = 'italic';
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2022 08:43 AM
Hi Divya,
I would recommend adding 'ghost text' in to the fields
See this previous thread:
Hope this helps,
Shane