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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Changing text colour in a text field based on value.

HawkerHunterJun 9 2020 — edited Jun 10 2020

Hi Friends,

In one of my APEX pages, I am using a Text field (P15_VALUE) where value is put based on user selection of a pop-up LOV.

If the value in the text field is >50,000 then the color of the text in the text field should be red and if it is less than 50,000 then it should be blue.

I am using a Dynamic Action to the Text field item (P15_VALUE) and in the true node I have added JavaScript code.

The JavaScript I am using is as shown below:

if($v(P15_VALUE) > 50000){

  $('#P15_VALUE').css("color","red");

}else{

$('#P15_VALUE').css("color","blue");

}

The above is working fine for browsers like Chrome, Firefox, Microsoft Edge. But it is not working in Internet Explorer.

Can anyone please suggest how to make it work in Internet Explorer.

Thanks & Regards

Hawker

Comments
Post Details
Added on Jun 9 2020
5 comments
3,328 views