How to display a text in different font styles ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 11:00 AM
Hi Team,
I have a written a client script to pre fill the text for few fields like the below script when we onload the change form.
Onload Client script :
var shortdescription = "A short summary of what will be done under this change record :";
var description = "List the planned activities (high level) per team to describe what will be done as part of this change record :";
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';
Result : The above script is working fine but when we enter any text on the form, it should display normal text not with italic font style. Can any one guide me??
for example : suppose on change form, automatically populate this info in shortdescription field value "A short summary of what will be done under this change record :" but when we enter additional information for this field it should be in normal style text not in italic style
Only this portion should be in italic font sytle : A short summary of what will be done under this change record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 11:47 AM
You're welcome, sorry I couldn't provide a solution.