On APEX 5.0, I tried to add date validation in "From" date of my form to show errors on page when From date entered is today's date. On processing page I created new validation name with following settings. With below settings still the validation is not working, could you please suggest where I am doing wrong.
Type -> PL/SQL expression 2)PL/SQL expression -> to_char(to_date(:P5_NEW_8,'YYYY-MM-DD-HH24:MI:SS'),'YYYY-MM-DD-HH24:MI:SS') < to_char(sysdate,'YYYY-MM-DD-HH24:MI:SS')
where P5_NEW_8
is the "From" date picker item where date entered is of format YYYY-MM-DD-HH24:MI:SS
.
Error message -> From: date needs to before today
Associated Item -> P5_NEW_8
Condition -> When Button Pressed -> New_7
New_7
button has a dynamic action to display result on my bar chart.
Condition Type -> Request is contained in Value
Value -> Create, Save