Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Customer portal formatted questions

DoDo labs___
Mega Sage

Hi!

 

I would like to formatting the questions on csm portal.

for example, one of the question should be bold, but the html code not working.

DoDolabs____4-1723020790334.png

 

DoDolabs____3-1723020719121.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Bhavya11
Mega Patron

Hi @DoDo labs___ ,

 

Below post has answer to your questions.

https://www.servicenow.com/community/itsm-forum/how-to-make-text-of-label-type-in-bold/m-p/672518/pa... 

 

 

Thanks,

BK


Regards
BK
LinkedIn: https://www.linkedin.com/in/bhavyashree-karanth-55032a121
YouTube: https://www.youtube.com/@NowWithBhavya

View solution in original post

2 REPLIES 2

Bhavya11
Mega Patron

Hi @DoDo labs___ ,

 

Below post has answer to your questions.

https://www.servicenow.com/community/itsm-forum/how-to-make-text-of-label-type-in-bold/m-p/672518/pa... 

 

 

Thanks,

BK


Regards
BK
LinkedIn: https://www.linkedin.com/in/bhavyashree-karanth-55032a121
YouTube: https://www.youtube.com/@NowWithBhavya

laszloballa
Administrator

TLDR: you generally can't do this.

 

Otherwise:

The [code] tags have no effect in the question field, they are meant to be used for journal entry fields, but they are often disable on instances due to security concerns.

 

What you could try is creating a macro variable, and adding your CSS in the macro, referencing the actual variable on the page (from the DOM), e.g.:

input[id=”IO:********************************”] {
font-weight: bold;
}

 

I have never actually tried this is just theory on my side. Also, this is quite hacky still as you can see.