Make question appear as bold in service portal

amaradiswamy
Kilo Sage

Hi All,

I have a single line text variable in catalog item, now i want to make question appear as bold. How can i do that and it should work in serviceportal sc_cat_item page also.

Thanks and regards

Swamy

8 REPLIES 8

Manoj Kumar16
Giga Guru

You can add the question name in HTML tags- <font size=4><i>Question</i></font>



You can also add an onload client script if these HTML tags appear while displaying the question-



GlideStringUtil.escapeHTML(); function to remove the tags.


Hi Manoj,



Thank You,



I tried it already but it is not working in service portal.



i will be really greatful if you can show me the working script in serviceportal.


Madhu27
Tera Expert

Amaradi,



Please go through this post for different options



https://www.servicenowguru.com/system-ui/field-styles-service-catalog-variables/



Thanks


Madhu



PS: Please hit Like/Helpful if it helps


Hi Madhu,



getControl() method will not work in service portal.