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!

Onchange with javascript

cayleeNov 3 2011 — edited Nov 4 2011
Hi,

I created a dynamic action on a field that execute a javascript code if a condition is met. the code set's the value of a field on an onchange event. I want to remove the onchange event in the field if the condition is not met. Can you let me know how this can be done?

true action:
function makeReadOnly()
{
document.getElementById('P1_X').value = origVal;
}
var origVal = document.getElementById('P1_X').value;

false action
document.getElementById('P1_X').onChange=null; --- this does not remove the onchange event on the lov
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2011
Added on Nov 3 2011
3 comments
419 views