You need to sign in to do that
Don't have an account?

Selecting date values only from the date picker
Hi All,
I have inputText component as a date picker in a VF page but the problem with this is user can directly enter a value in the input text component without using the date picker.Is it possible to force user to enter values for the date only from the date picker i.e. in the input text component user should be able to enter values only from the date picker ?
Saurabh
I have inputText component as a date picker in a VF page but the problem with this is user can directly enter a value in the input text component without using the date picker.Is it possible to force user to enter values for the date only from the date picker i.e. in the input text component user should be able to enter values only from the date picker ?
<apex:inputText value="{!startDate}" onfocus="DatePicker.pickDate(false,this,false);" id="startDate" />Thanks
Saurabh
http://www.infallibletechie.com/2012/11/date-picker-in-visualforce-page.html
Change the visualforce page version to 27 - 28 in order for DatePicker to work
Please let us know if this will help u
I did the changes as mentioned in the blog you suggested and changed the version to 27 or 28 but the Calender is not showing up.
The code for VF page and Controller is given below:
Version Settings: