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!

How to make DatePicker readOnly

858861Sep 17 2011 — edited Sep 18 2011
Hi
There is a tabular form(up datable query) on one of my pages. One of its items is a Datepicker. In some conditions I need to make this field unchangeable by users.
I was able to do so by the following Java Script Dynamic action:

var elms = document.getElementsByName('f04');
for (i=0; i< elms.length; i++) {
elms.readOnly=true
}

It works fine and disables the textField of the Datepicker however users still able to change the date by clicking on the popup calendar button. the popup calendar button is not disabled yet.

I would appreciate your help.

Regards
This post has been answered by NoGot on Sep 18 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2011
Added on Sep 17 2011
1 comment
1,432 views