How to make DatePicker readOnly
858861Sep 17 2011 — edited Sep 18 2011Hi
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