I am a fresher in oracle apex, need some inputs.
There is a form to enter header information. In that there is a date field :P100_ENTERED_DATE, if this field value is less than current date then we need to enable another field :P_100_REASON and make it mandatory.
Any suggestions would be of great help.
I tried to do with JS expression to put in the client side condition like below but did not work.
WHEN: Event: Change Type: Item Item(s): :P100_ENTERED_DATE
Client-side Condition: Javascript Expression.
JS Expression:
var ld_cust_date = apex.item("P102_CUST_REQUEST_DATE").getValue();
var current_date = new Date();
if ((current_date - ld_cust_date) > 2){
return true
}
else {
return false
}
True Condition: Enable the field (I also want to make it mandatory, not sure how to do this) False Conditoin: Disable the field.
