For Adobe ColdFusion application servers Password

A password format field is the equivalent of <input type="password">, a box into which the visitor can type a password. The characters are hidden as they are typed.

Other non-TerraField attributes will be passed through to the underlying text tag (<input type="text">). For example:

  • class="important"
  • size="6"
  • readonly

Examples

A plain password field:

<cf_terrafield
  name="MyPasswordField1"
  format="password"
/>

A password field with a minimum and maximum length (note that as the default datatype for password is string, leading and trailing spaces are ignored), and pattern validation (the regular expression in the pattern attribute demands alphanumeric characters only):

<cf_terrafield
  name="MyPasswordField2"
  format="password"
  caption="your password"
  minlength="6"
  maxlength="12"
  size="12"
  pattern="[[:alnum:]]*"
  error="Your password must be letters or numbers only (no spaces), and between 6 and 12 characters long."
/>

No comments yet