newContentType

Specifies the content type of the newText property.

For example, if newContentType='text/html', newText will contain an XHTML fragment.

Syntax

Reference_Syntax.newContentType = "allowRichText | plainTextOnly"

Values

Type

Values

String

  • allowRichText (default)

  • plainTextOnly

The field supports rich text.

  • plainTextOnly

The field does not support rich text. Even if markup is present in the data, it should be passed through rather than interpreted. However, it is not guaranteed whether downstream processing will respond to the markup.

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.event.newContentType = "plainTextOnly";

FormCalc

xfa.event.newContentType = "plainTextOnly"

// Ethnio survey code removed