From: "Ian Lim" <[EMAIL PROTECTED]>
> Hi
>
> Managed to start trying out intake on yesterday.
>
> Seems an interesting way to validate the inputs which my project has a lot
> to do :)
>
> Would there be any validator written for date values for intake ?
>
> I am thinking of writing one based on an inheritance from StringField.
>
> Any comments on this approach ?
>
> Regards
> Ian Lim
You would also need a validator based on DefaultValidator (as
per John's response to my original message).
The following are the obvious difficulties:
1. i18n - allowing for different formats for different locales.
2. date, time or date-time - the user may want to select from
one of these (or even components of these).
3. Input format - dates are a pain to enter in forms. Often
it is nicest to present a date as a series of three selects.
How would this map back to a single intake field?
4. Actual date validation - what should happen when an
invalid date is presented, for example Feb 30?
Cheers,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]