diff --git a/form.php b/form.php index 0dae6fd..e45fad0 100644 --- a/form.php +++ b/form.php @@ -376,7 +376,10 @@ class form { if ($field->type === "hidden" || $field->readonly === true) continue; - $focusElement = $field->name; + if ($field->titles) + $focusElement = $field->name."_".key ($field->titles); + else + $focusElement = $field->name; break; } if (count ($errors) > 0)