cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic RTF Text Field with only one word in bold

umberto_panico
Participant
0 Kudos

Hi to All,

I have a text field (RTF) "Textfield" and the value will be loaded dinamically using JavaScript:


this.Textfield.rawValue = "The word is bold":

Works fine, the result is:

The word is bold

Now if I use:


this.Textfield.rawValue = "The <b>word</b> is bold":

the result should be:

The word is bold

but the result is:

The bword/b is bold (please replace ^ with < and >).

Do you have suggest regard this issue?

Thanks & Regards,

Umberto

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Just do a Search in this forum and you will surely find your solution.

umberto_panico
Participant
0 Kudos

Hi Chintan,

any solution found.

Please post some link.

Best Regards,

Umberto

chintan_virani
Active Contributor
0 Kudos

.

Answers (1)

Answers (1)

Former Member
0 Kudos

allowRichText

Specifies whether the text can include styling (also known as rich text).

Note: The allowRichText property only relays styling information to the application interface. The

setting of this property in no way restricts a user from inputting plain text markup that includes

styling information. For example, regardless of the setting of this property, a user could type:

<b>hello</b>

Syntax

Reference_Syntax.allowRichText = "0 | 1"

Values

Type Values

String

● 0 (default)

Text styling is invalid. This is the default when the textEdit object does not contain an

exData object.

● 1

Text styling is valid. This is the default when the textEdit object does contain an exData

object.

Examples

JavaScript

TextField1.resolveNode("ui.#textEdit").allowRichText = "1";

FormCalc

TextField1.ui.#textEdit.allowRichText = "1"