diff --git a/wire/core/Inputfield.php b/wire/core/Inputfield.php index fe3376184..1ebe5ad77 100644 --- a/wire/core/Inputfield.php +++ b/wire/core/Inputfield.php @@ -1458,7 +1458,9 @@ public function error($text, $flags = 0) { $errors[] = $text; $this->wire('session')->set($key, $errors); } - $text .= $this->name ? " ($this->name)" : ""; + $label = $this->getSetting('label'); + if(empty($label)) $label= $this->attr('name'); + if(strlen($label)) $text .= " - $label"; return parent::error($text, $flags); }