public function isValid($value, $context = null) { $this->clearValidators(); return parent::isValid($value, $context = null); }
/** * */ public function isValid($value, $context = null) { $valid = parent::isValid($value, $context); if ($valid) { // All fields are hidden when correct $this->removeDecorator('HtmlTag'); $this->removeDecorator('row'); $this->removeDecorator('label'); } return $valid; }