Level 2
You can use
$this->resetErrorBag();
7 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, How to clear validation error after re-open modal with error message?
I already have this listener in open and close modal
protected $listeners = [
'resetInputFields',
];
public function resetInputFields()
{
$this->reset();
}
also tried
public function resetInputFields()
{
$this->reset('name');
}
But still doesn't clear
You can use
$this->resetErrorBag();
Please or to participate in this conversation.