Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A variable of type "formattedtext" is shown to the end user as a formatted text editor in the input form, with the matching features enabled.

Note

Unsupported Behaviour

Regardless of that dataType, ANY variable (also "string" or "longtext" or "calculated", for example) which has Next to FormattedText, variables of the type “Text”, “Long Text” will render the formatting, unintended!
(if they have a value which starts with "<TextFlow " and can be parsed as valid XML is inserted into a TextFrame's displayTextFlow as formatted text.

The "value" of the variable remains a string, but it contains a valid TextFlow XML, as described in TextFlow and ITextLayoutFormat XML

As you read, this behaviour might work, but )

This behaviour is unsupported and might change in future versions.

We strongly advise to use the FormattedText variable type to ensure futureproof future proof compatibility.

Referencing Variables

...