Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Make Javascript text bold and underline

Tommaso2
Tera Expert

Hi all,

I need to make bold and underline the test below in Javascript:

find_real_file.png

So I need 3.2. Retribuzione variabile  to be bold and underline (I'll trigger this content on a document).

I've already tried with:

RetrVar1 = "3.2  Retribuzione variabile".bold();

but it does not work.

Can you please support me?

Regards,

Tommaso

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you share screenshot where is this required?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Tommaso2
Tera Expert

Thanks, find attached a ppt document with three prints.

 

If anything else is needed, let me know.

Thank you,

Tommaso

Hi,

did you try to use HTML tags for <b> bold and <u> for underline

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes I tried but it doesn't work, since on the letter it's always reflected whatever is between "":

find_real_file.png

In fact on the letter it becomes:

find_real_file.png

I want to emphasize that not even <br> works to break the line, I have to use \r\n.

 

Thank you and Regards,

Tommaso