--- sites/all/modules/webform/components/otextfield.inc	Tue Apr 01 23:05:16 2008
+++ sites/all/modules/webform/components/textfield.inc	Thu Jun 26 16:56:41 2008
@@ -38,6 +38,24 @@ function _webform_edit_textfield($currfi
     '#maxlength' => 10,
     '#weight' => 0,
   );
+  $edit_fields['extra']['field_prefix'] = array(
+    '#type' => 'textfield',
+    '#title' => t("Label placed to the left of the textfield"),
+    '#default_value' => $currfield['extra']['field_prefix'],
+    '#description' => t('Examples: $, #, -.'),
+    '#size' => 60,
+    '#maxlength' => 127,
+    '#weight' => 1,
+  );
+  $edit_fields['extra']['field_suffix'] = array(
+    '#type' => 'textfield',
+    '#title' => t("Label placed to the right of the textfield"),
+    '#default_value' => $currfield['extra']['field_suffix'],
+    '#description' => t('Examples: lb, kg, %.'),
+    '#size' => 60,
+    '#maxlength' => 127,
+    '#weight' => 1,
+  );
   $edit_fields['extra']['disabled'] = array(
     '#type' => 'checkbox',
     '#title' => t("Disabled"),
@@ -64,6 +82,8 @@ function _webform_render_textfield($comp
     '#default_value' => _webform_filter_values($component['value']),
     '#required'      => $component['mandatory'],
     '#weight'        => $component['weight'],
+    '#field_prefix'  => $component['extra']['field_prefix'],
+    '#field_suffix'  => $component['extra']['field_suffix'],
     '#description'   => _webform_filter_descriptions($component['extra']['description']),
     '#attributes'    => $component['extra']['attributes'],
     '#disabled'      => $component['extra']['disabled'],
