Forum Stats

  • 3,851,709 Users
  • 2,264,014 Discussions
  • 7,904,821 Comments

Discussions

page item validation

Comet
Comet Member Posts: 176 Blue Ribbon

I created a page in APEX Express 4.2.3.00.08.  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;

Else

Return true;

End if;

Tagged:
This discussion has been closed.