Change font weight and size on a label variable

ddemar
Giga Contributor

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.

6 REPLIES 6

No, Brandon R., I never got this to work. 

Bummer! Did you have an alternative or do something different??