EricWebsite
Member
On Joomla 4.3.1, PHP 8.1.18, Cassiopeia template, Upgraded from J3,F3 > J4,F4, Fabrik 4 gamma3
Using the $data to set a simple Condition to only run the validation when there is text in the $data field, like:
return $data > '';
or
if (strlen($data) > 0) {
return true;
} else {
return false;
}
always returns false and the validation is not run. In Fabrik 3 this works.
Using the $data to set a simple Condition to only run the validation when there is text in the $data field, like:
return $data > '';
or
if (strlen($data) > 0) {
return true;
} else {
return false;
}
always returns false and the validation is not run. In Fabrik 3 this works.