0 Replies Latest reply: Dec 30, 2013 5:09 PM by Comet RSS

    page item validation

    Comet

      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;