Hello. Thank you for contacting the Toolset support.
Well - To validate the field type "textarea" actually there is no other validation other than "required" available with Generic field. So any extra validations you want needs to be added through the Forms API hook: cred_form_validate
No, we mean minimum characters, it's for our clients that send us news articles and some are sending us a news article with one paragraph, so we want to set a minimum amount of characters.
add_filter('cred_form_validate','my_validation',999,2);
function my_validation($error_fields, $form_data)
{
//field data are field values and errors
list($fields,$errors)=$error_fields;
//validate if specific form
if ($form_data['id']==1234)
{
//check description value
if (isset($fields['description']['value']) && mb_strlen ($fields['description']['value']) < 100 )
{
//set error message for my_field
$errors['description']='You must input more than 100 characters';
}
}
//return result
return array($fields,$errors);
}
Please replace 1234 with your Toolset form ID
More help: hidden link
Gets the length of a string.