Hi experts,
We're using Apex 22.2.11 and we have this on change javascript D.A. to show validation errors without submitting the page:
// First clear the errors
apex.message.clearErrors('P32_CDASIGNADO');
apex.message.clearErrors();
// Show error in case validation are not OK
if ($v('P32_ASIGNADO_OK') == 'N') {
apex.message.showErrors([{
type: "error",
location: ["page","inline"],
pageItem: "P32_CDASIGNADO",
message: "No existe la configuración para Agencia, Medio, Cliente y Anunciante seleccionados",
unsafe: false
}
]);
}
Our issue here is that the errors are not hidden when P32_ASIGNADO_OK ≠ N

What are we doing wrong!?
BTW, testing in the browser console, the function apex.message.clearErrors('P32_CDASIGNADO');
it works fine:
before:

after:

Thanks,
Jose.