diff --git a/form.php b/form.php index d8831c4..142b1c2 100644 --- a/form.php +++ b/form.php @@ -221,7 +221,7 @@ class form // the first error fields when there is one foreach ($this->fields as $field) { - if ($field->type !== "hidden") + if ($field->type !== "hidden" && $field->readonly !== true) break; } $focusElement = $field->name;