Onchange with javascript
cayleeNov 3 2011 — edited Nov 4 2011Hi,
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