UMD Web Site

Page Content   Main Links   Page Links   Utility Links   Search   Footer Links

ColdFusion Development Project

cf_selectcountry

Description: Creates a select list form field for countries with the possibility to pre-select a country by full name or the 3 character country code. The database query is established as object of the calling CF document and only executed if it doesn't exist yet.
Syntax:
<cf_selectcountry
  datasource = "data_source_name"
  namecountry = "form_field_name"
  selectcountry = "country"
  selecttype = "code", "code2" or "name">
See also: cf_selectstate
Attributes:
Attribute Name Required/Optional Default Description
datasource required oracle9 The datasource to be queried for the list of countries.
namecountry optional c_code Form field name for the country select list.
selectcountry optional
Pre-selected country value.
selecttype optional code Determines if the custom tag uses/returns the full country names name, the 3 character country abbreviation code, or the 2 character country abbreviation code2.
Returns: The HTML code for the form field.
Example:
<cf_selectcountry selectcountry="USA">

Contact Info:

Email: webdevelopment@umassd.edu - Web Design & Development

Main Links

Page Links

Utility Links

Search

 
Text Only Options

Top of page


Text Only Options

Open the original version of this page.

Usablenet Assistive is a UsableNet product. Usablenet Assistive Main Page.