diff --git a/uc_coupon.admin.inc b/uc_coupon.admin.inc
index 18ed043..322da39 100644
--- a/uc_coupon.admin.inc
+++ b/uc_coupon.admin.inc
@@ -575,7 +575,7 @@ function uc_coupon_add_form(&$form_state, $coupon = NULL) {
       '#type' => 'textfield',
       '#default_value' => $title .' [nid:'. $nid .']',
       '#autocomplete_path' => 'admin/store/coupons/autocomplete/node',
-      '#maxlength' => 255,
+      '#maxlength' => 300,
     );
   }
 
@@ -611,6 +611,7 @@ function uc_coupon_add_form(&$form_state, $coupon = NULL) {
       '#type' => 'textfield',
       '#default_value' => $name .' [tid:'. $tid .']',
       '#autocomplete_path' => 'admin/store/coupons/autocomplete/term',
+      '#maxlength' => 300, // leave room for the [tid=%] suffix
     );
   }
 
@@ -685,6 +686,7 @@ function uc_coupon_add_form(&$form_state, $coupon = NULL) {
       $form[$field][] = array(
         '#type' => 'textfield',
         '#autocomplete_path' => $path ? $path : NULL,
+        '#maxlength' => ($field=='products' || $field=='terms') ? 300 : 128,
       );
     }
   }
@@ -714,7 +716,6 @@ function uc_coupon_add_form(&$form_state, $coupon = NULL) {
     '#value' => t('Save coupon'),
     '#weight' => 10,
   );
-
   return $form;
 }
 
