For Adobe ColdFusion application servers String

String represents any character string data. Leading and trailing whitespace is trimmed before validation. Several examples are provided below.

Examples

A plain String field:

<cf_terrafield
  name="MyString1"
  datatype="string"
/>

A String field with a different format:

<cf_terrafield
  name="MyString2"
  datatype="string"
  format="textarea"
  rows="5"
  cols="25"
/>

A String field with minimum and maximum lengths specified:

<cf_terrafield
  name="MyString3"
  datatype="string"
  caption="your login name" 
  minlength="6"
  maxlength="12"
/>

A String field with minimum and maximum values specified. Note that minima and maxima are applied to strings as you would find in a dictionary. In this case, Smith would be a valid entry, while Smyth would not.

<cf_terrafield
  name="MyString4"
  datatype="string"
  caption="your surname"
  min="S"
  max="SMI"
/>

No comments yet