Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Make text bold using javascript

Avatar

Former Community Member
To make it short and simple, here is what I need to do:



In my javascript, I have a long string of concatinations. I need to be able to make some of the words in the string bold, and others normal. I have tried the str.bold() method and that doesn't seem to be working for me. It simply displays bold tags around the word in the text field when I preview (
word). I have the text field as a 'rich text' as well as 'xhtml'.



Any advice on how to bold words using javascript would be great. I have looked through the forums and havn't found anything helpful so far.



I am using Livecycle 8.



Thanks in advance.
2 Replies

Avatar

Level 7
Have you looked at the Acrobat "span" object?

Avatar

Former Community Member
If you could give me an example, it would be great. I'm looking at the span object right now to see if it's something I could use.