Need to make text field of date-time field in form widgets non editable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Need to make text field of date-time field in form widgets non editable

Hemanth Kumar Kanamarlapudi
Hi Users,

Can any one help out if we can make the text field in date-time field used in form widgets as non editable?

Because of this I am forced to validate all the dates entered for valid check in my events class.
(eg: modified date from 12-01-2010 to 00-00-0000)

Present usage:
<date-time type="date" input-method="text"/></field>

Thanks in advance.

Regards
Hemanth


________________________________
http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: Need to make text field of date-time field in form widgets non editable

Anne Jessel
Does this do what you want?

<field name="fromDate">
<display type="date"/>
</field>

Cheers,
Anne.

2009/8/13 Hemanth Kumar Kanamarlapudi <[hidden email]>:

> Hi Users,
>
> Can any one help out if we can make the text field in date-time field used in form widgets as non editable?
>
> Because of this I am forced to validate all the dates entered for valid check in my events class.
> (eg: modified date from 12-01-2010 to 00-00-0000)
>
> Present usage:
> <date-time type="date" input-method="text"/></field>
>
> Thanks in advance.
>
> Regards
> Hemanth
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Need to make text field of date-time field in form widgets non editable

Hemanth Kumar Kanamarlapudi
Hi Anne,

Thanks for your reply.

Actually I want to make the text box non editable while input and want to allow the values to be populated only on the selection from calendar control of the <date-time> tag in form widget.

The tag you showed is useful when the date needs to be populated from the database or from server side.

Thanks & Regards
Hemanth



-----Original Message-----
From: Anne Jessel [mailto:[hidden email]]
Sent: Thursday, August 13, 2009 12:08 PM
To: [hidden email]
Subject: Re: Need to make text field of date-time field in form widgets non editable

Does this do what you want?

<field name="fromDate">
<display type="date"/>
</field>

Cheers,
Anne.

2009/8/13 Hemanth Kumar Kanamarlapudi <[hidden email]>:

> Hi Users,
>
> Can any one help out if we can make the text field in date-time field used in form widgets as non editable?
>
> Because of this I am forced to validate all the dates entered for valid check in my events class.
> (eg: modified date from 12-01-2010 to 00-00-0000)
>
> Present usage:
> <date-time type="date" input-method="text"/></field>
>
> Thanks in advance.
>
> Regards
> Hemanth
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

http://www.mindtree.com/email/disclaimer.html