Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
r3volution.net's picture
Asked by on Thu 30th Apr 2009
How would I go about setting up a field that has a label different than it's value?

I was wondering be it through: core, module, hack, or whatever how I might go about creating a drop-down box that presents users with a list consisting of a list of countries as the label, and their abbreviation as the actual value.

Example:

<select name="country" class="form">
  <option value="">Unspecified
  <option value=al>Albania
  <option value=dz>Algeria
  <option value=ad>Andorra
  <option value=ar>Argentina
  <option value=abv>etc
</select>

Thank you very much,
-LP

Commenting on this Drupal Question is closed.