Hello everyone,
In my model I have a custom validation rule, however this does not work client side Can I get help please?
public function rules()
{
return [
[['support'], 'custom_validation_rule']
];
}
public function custom_validation_rule($attribute, $params){
if($attribute == '1'){
$this->addError($attribute,'Error');
}
}