texttype

Specifies whether a field uses plain text or rich text.

Syntax

   <texttype>type</texttype>
Table 1. texttype parameter
Parameter Type Description
type string The type of text to use. Valid options are:
  • text/plain
  • text/rtf

Available in

field

Example

This sample sets a field to use rich text.

   <field sid="richTextField">
      <texttype>text/rtf</texttype>
      <value>Hello</value>
      <rtf>rich text version of Hello</rtf>
   </field>

Usage details

  1. Default: text/plain
  2. If using rich text:
    • The rich text is stored in the rtf option.
    • A plain text version of the rich text is stored in the value option (refer to the rtf option for more information).