diff --git a/ui-lib.pl b/ui-lib.pl
index 4aee5c658..62fbb9ee8 100755
--- a/ui-lib.pl
+++ b/ui-lib.pl
@@ -659,6 +659,14 @@ if ($buttons && @$buttons) {
$rv .= "\n";
}
$rv .= "\n";
+# When going back to a form, re-enable any text fields generated by
+# ui_opt_textbox that aren't in the default state.
+$rv .= "\n";
return $rv;
}
@@ -1230,7 +1238,6 @@ $rv .= "\n";
-$rv .= "\n";
return $rv;
}