Change font weight and size on a label variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2020 08:56 PM
Hello,
We would like to change the font weight and size of a few label variables in one of our catalog items that is accessible from the Service Portal. I've seen several older posts addressing this topic and I have tried an onLoad script suggested, g_form.getControl('label_variable').setAttribute('style', 'font-weight: bold;color:red'), but I get a javascript error.
I have also seen references to setLabel(), but I can't find any helpful documentation that further explains usage.
Is this acheivable? Many thanks in advance for your assitance.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2021 03:11 PM
No, Brandon R., I never got this to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2021 11:23 AM
Bummer! Did you have an alternative or do something different??