public function removeParsley()
{
parent::removeParsley();
switch ($this->type) {
case 'min':
$this->field->setAttribute('data-parsley-minlength', '');
break;
case 'max':
$this->field->setAttribute('data-parsley-maxlength', '');
break;
case 'range':
$this->field->setAttribute('data-parsley-length', '');
break;
}
}