Text Type

The Text type is used for textual data and includes several attributes to control text entry characteristics.

Attributes for Text Properties

  • Pattern

    • The Pattern attribute allows the definition of a regex pattern to enforce a specific format or structure for text entries. This ensures that all text entries conform to a predefined format, such as including or excluding certain characters.

  • Min Length

    • Min Length sets the minimum number of characters a text entry must contain. The allowed range is from 0 to 4000 characters. This attribute ensures that text entries are not shorter than the specified length.

    • Validation Rules:

      1. The Min Length value should be a whole number between 0 and 4000.

  • Max Length

    • Max Length determines the maximum number of characters allowed in a text entry. It ranges from 0 to 4000 characters. This constraint prevents entries from exceeding the specified maximum length.

    • Validation Rules:

      1. The Max Length value should be a whole number between 0 and 4000.

      2. The Max Length must be greater than or equal to the Min Length value.

  • Default Value

    • The Default Value attribute sets a predefined value for the text property when no other value is provided. This value must meet or exceed the Min Length and not exceed the Max Length if these constraints are defined.

    • Validation Rules:

      1. If Min Length is specified, the Default Value must be between the specified Min Length and 4000 characters.

      2. If the Max Length is specified, the Default Value must be between 0 and the specified Max Length.

      3. If both Min Length and Max Length are specified, the Default Value must fall between these two values.

      4. If neither Min Length nor Max Length is specified, the Default Value should be between 0 and 4000 characters.

Last updated