cancel
Showing results for 
Search instead for 
Did you mean: 

Date input fields & input help

Former Member
0 Kudos

Hi.

Is there any way to make the input field of a date field to be read only but the input help (calendar control) stays active?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

set the system date.or u can set the date in implementation

Former Member
0 Kudos

hi

you con do this dynamically , by coding.

Former Member
0 Kudos

Make the read only attribute to true and the input field is disabled and still the user can browse the calander but he can't select any date.

P.S : What purpose does it serve if you don't allow the user to select the date. Are you going to pre populate the filed with some date and you don't want the user to change it ?

Thanks!

Surya.

former_member335005
Participant
0 Kudos

Hi,

Try disabling it instead of making it readonly.

-Sangeeta

Former Member
0 Kudos

Hi,

Why do you need date field as read only?If the user enters the Date in a bad format then when he submits it by default error will be shown .You need not implement any code for that.

Regards,

Sudhir

Former Member
0 Kudos

Hi

thanks for ur answer,

If the end user dont know the format, he (or she ) can enter a value like 20081214 , if the format is like DD/MM/YYYY the value is translated to 20/08/1214 (which is a valid date), that is, I want to make the field less sensitive to user's errors.

regards

Former Member
0 Kudos

Hi

Thats what i was telling you.The frame work doesnot accept illegal date formats.It will give error message by default when you submit the page. you need not worry.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Regards

Sudhir

Edited by: Sudhir Gorantla on Feb 14, 2008 3:04 PM

Edited by: Armin Reichert on Feb 18, 2008 7:15 PM