Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

Hi,

can you share screenshot where is this required?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x 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  ||  10x 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