Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

apex.message.clearErrors() not working

Jose ArósteguiJun 27 2024

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.

This post has been answered by InoL on Jun 27 2024
Jump to Answer
Comments
Post Details
Added on Jun 27 2024
2 comments
688 views