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!

How to show Inline with Fields error using Java script in Apex.

TRMNov 30 2018 — edited Dec 3 2018

Hi,

I am trying to do some validation in DA and when error comes i want to show Error inline with Item.

But i dont know how to achieve the same using Java script.

Can anyone support me here ?

I have wrote JS code and here only i have to add Inline with Item code to show error.

if (apex.item( "P9_NEW" ).getValue()=="")

 {       

     apex.message.alert( "P9\_NEW is null", function(){

        afterLoad();

    });

 }

else if (apex.item("P9_NEW_1").getValue() == "")

{

     apex.message.alert( "P9\_NEW\_1 is null", function(){

        afterLoad();

    });

}

It should display like below:

2018-12-01_00h57_22.png

Comments
Post Details
Added on Nov 30 2018
2 comments
6,107 views