< Back

Document Subject: How to force user to use Date Picker in XPages
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#xpage-Date-Picker or http://A555F9/nn.nsf/ByAlias/xpage-Date-Picker

The tick show Date Picker in xpages is awesome, unfortuantely there is no way of forcing the user to use the datepicker.




I found a way to do this on the iqjam:

http://iqjam.net/iqjam/iqjam.nsf/questions/20101104_Date_field_and_Date_Picker.htm

You basically add to the field's event onkeydown return false;

This seems to refresh the page, and take the user back to where the field was before.

To complete the illusion yo can add some style to the date field box to hide the border and shading.

Add this to the style property:

border-left-color:white; border-right-color:white; background-image:none;  border-top-color:white; border-bottom-color:white;

 

I would like to make the date picker image a bit bigger,anyone worked out how to do that using a theme?