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!

javascript validation (item is not null)

Walid KHARRATAug 31 2020 — edited Sep 1 2020

Hi

i want to add a validation that check item is not null, i add this:

pastedImage_0.png

i add a javascript code when the validation is true:

pastedImage_1.png

alert('origine est null');

document.getElementById("P6_ORIGINE").focus();

i want user to return to the empty item after the error message.

but the page go to endless loop of displaying the alert.

this line of code cause the endless loop : document.getElementById("P6_ORIGINE").focus();

How to do that without blocking the page.

Comments
Post Details
Added on Aug 31 2020
2 comments
1,347 views