public function clientValidateAttribute($object, $attribute) { $js = parent::clientValidateAttribute($object, $attribute); if ($this->replacingCommas === true) { $js = 'value = value.replace(/,/g, "."); ' . $js; } return $js; }