For Adobe ColdFusion application servers URL

A URL format field provides a text box with an associated button, so that a visitor can test that the they have entered is correct. If the TerraField attribute Prompt is specified, the value will appear in the empty field and disappear as soon as the field receives focus.

TerraForm recognises two special fields for format:

  • ButtonCaption
    Optional. The text to appear on the test button. Defaults to Test.
  • buttonPassthrough
    Optional. Attributes to pass through to the button tag wrapped around the checkbox and the text caption. Remember to escape any double quotes (") or hashes / pound signs (#) by doubling them. The default is style="font-size : 9px" (written buttonPassthrough="style=""font-size : 9px""" ). See the third example below.

The form below shows examples of a plain field, a field with a default value, a field with regular HTML attributes specified, and a field with a prompt message that vanishes when the visitor clicks on the field. Note that many other TerraForm attributes can be specified, such as maxlength, required, and datatype.

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

  • onfocus="this.style.backgroundColor='white'" onblur="this.style.backgroundColor='##eeeeee'"

Examples

A plain field:

<cf_terrafield
  name="MyURLField1"
  format=""
/>
 

Assign a default value:

<cf_terrafield
  name="MyURLField2"
  format=""
  default="://WWW.google.com/"
/>
 

Add a prompt message and change the button:

<cf_terrafield
  name="MyURLField4"
  format=""
  prompt="Your web site "
  buttoncaption="Push my button!"
  buttonpassthrough="style=""font-size : 9px; color : red"""  
/>
 

Uniform Resource Locator
World Wide Web
HyperText Markup Language
The coding language used to create hypertext documents for use on the World Wide Web.
Hypertext Transfer Protocol
The protocol for moving hypertext files across the Internet.
No comments yet