Topic Options
Rate This Topic
#137964 - 06/11/07 03:31 AM How to validate a DATE FIELD?
Shami Offline
Stealth Member

Registered: 06/08/07
Posts: 10
Hi all,

I need to validate a Date Field in a form i.e. it should not allow the user to manually enter a date/character/integer.
Date should be selected only from the pop-up.User should be restricted to enter values manually.

Is it possible to validate and display any message to the user? Or any other better solution?

Appreciate a prompt reply!


Regards,
shami

Top
#137965 - 06/11/07 04:35 AM Re: How to validate a DATE FIELD? [Re: Shami]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
If you use the Date/Time field, the date is always validated even if you enter this date manually.

You can add a field Blank text on the Date/Time field to disallow the user to get the focus by clicking in this field. It's just a workaround because the user can get the focus in the Date/Time field by using the tab...
_________________________
Vincent.

Top
#137968 - 06/11/07 07:34 AM Re: How to validate a DATE FIELD? [Re: Vincent_RIEDWEG]
Shami Offline
Stealth Member

Registered: 06/08/07
Posts: 10
Vincent,
If Date/Time field is used, it will be validated only in a Regular form.

I need to do the Date validation in a Display-Only form.
Even if Date/Time fieldis used, Validation dosent seem to happen in a Display-Only form.



Regards,
Shami

Top