I created a valid_cpf function that returns 0 (zero) to invalid CPF and 1 for valid CPF.
Then I created a field validation in the CPF of my form.
Validation has the following characteristics.
Type: The specified item / column is numeric
The Validation Expression field 1 (# value_required #)
select valida_cpf(:cpf) from dual;
CPF invalid!
How should I proceed to compare the function return and when the CPF is invaled the system displays the message?