Welcome to the IBM Collaboration Solutions Community IQJam.
UsernamePassword
Reset Password | Register
   
Home | Leader Board | Tags | Help
Date field and Date Picker 
I want to have an xpage where a field is a date field that can not be directly edited.  Next to the date field is a date picker where a person chooses a date.  This in turn moves the value into the protected date field.

I just can not see a way to do this ... I tried 'disabled' but it did not work
 
Thanks 
Domino Development / Domino Designer
John Coombs - about 1 year ago |  |  | Viewed 227 times

There are 2 answers

0votes
if your purpose is to prevent manual entry into the date field, try adding the following client side javascript to the onKeyDown event of the data field
 
return false;
 
that should prevent data from being entered into the field I believe. 


Jeremy Hodge - about 1 year ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community


0votes

You can make the field read only. Don't use the read only property as it will render the field as text, instead set the "readOnly" attribute to true.  This link should help you:

http://www.bleedyellow.com/blogs/techKNOWlogy/entry/read_only_edit_box_in_xpage?lang=en



Naveen Maurya - about 1 year ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community


 

Experts for Domino Development / Domino Designer