Forum Stats

  • 3,851,709 Users
  • 2,264,014 Discussions


page item validation

Comet Member Posts: 176 Blue Ribbon

I created a page in APEX Express  On the page there are two items: a text field named P55_KEY_ID and an LOV named P55_REASON with the values LOST, BROKEN, OTHER.  I created a dynamic action that enables P55_REASON when P55_KEY_ID changes. Our business rule is if P55_KEY_ID has been changed then P55_REASON must have a value, i.e. not null.  Can I define a validation on P55_REASON  with a condition to test the disabled property of the page item with javascript, if it is disabled then return false otherwise true.  Where would I place the following javascript?

IF $x(‘P55_REASON’).disabled then

  Return  false;


Return true;

End if;

This discussion has been closed.