Documentation

Docs / Development / LongText Field

LongText Field

The LongText Field used for storing text without length restrictions.

Field handler

Usage in CTD:

<Field name="LongDescription" type="LongText">
...
</Field>

Supported Field Controls

Configuration

The following properties can be set in the Field’s Field Setting configuration:

Be aware when RichText or AdvancedRichText is set as TextType, HTML tags are appended to the inserted text - that are not visible for the user. These extra characters are calculated in the length of the inserted text, thus MinLength and MaxLength settings in these cases should be used with precautions.

For a complete list of common Field Setting configuration properties see CTD Field definition.

Example/Tutorials

Fully featured example:

<Field name="LongText1" type="LongText">
      <DisplayName>LongText data</DisplayName>
      <Description>Field for storing more than 450 characters.</Description>
      <Configuration>
        <ReadOnly>false</ReadOnly>
        <Compulsory>true</Compulsory>
        <DefaultValue>hello world</DefaultValue>
        <MaxLength>300</MaxLength>
        <MinLength>3</MinLength>
        <TextType>LongText</TextType>
      </Configuration>
</Field>

The above example configures the LongText Field so that:

Is something missing? See something that needs fixing? Propose a change here.