Hi, i try to validate a element to check if the element filled out with 5 characters. In the element validation i added this php-code.
$ww = $formModel->getElementData('table___element');
if (strlen($ww) == 5) {
return true;
}
else {
return false;
}
but no error message is shown when i filled the element with 2 characters. What's wrong?
$ww = $formModel->getElementData('table___element');
if (strlen($ww) == 5) {
return true;
}
else {
return false;
}
but no error message is shown when i filled the element with 2 characters. What's wrong?