How to avoid manual user input in DateField

Hi Team,

i am using DateFiled in my UI, as per my requirement user can select only the date by using the Icon,means i wanted to diallow user to enter manually.

kindly help me

Hi, you should use PopupDateField instead of DateField. It extends DateField and has a couple of extra methods, including setTextFieldEnabled which does exactly what you need. In general, DateField should be considered deprecated and either PopupDateField or InlineDateField always used instead.

Thanks Johannes,

its working…