Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

min date value when using a date field into an IG

Roger2511 hours ago

Hello,
I have an IG where there are 2 date fields, and I wanted the second date field to have a minimum value of first date picker + 1 day, but only if the first datefield is in the next day, otherwise to have the default min date set in the property.
Example: date field 1 contains 04-Nov, then min date of date field 2 to be 05-Nov, so this only if today 03.11 I choose next day in the field 1.
If today I choose 05.11 in field 1, then date field 2 should have the min date as it is configured.
Anyway I tried with only as test:
$('#P1_SECOND_CALENDAR').datepicker("option","minDate",$("#P1_FIRST_CALENDAR").val());

but this works only with static items, if date picker fields are in an IG, this seem not to work.
How to achieve this in IG?

Thanks

Comments
Post Details
Added 11 hours ago
0 comments
24 views