Gossamer Forum
Home : Products : DBMan : Customization :

Required data (date)

Quote Reply
Required data (date)
I am using DBMAN to run a alumni database. I would like to force the users to enter in all four digits for their graduating year (1991 rather than 91) I looked throughout the archives and didnt see this topic addressed.
Thanks
Quote Reply
Re: Required data (date) In reply to
You can use a default value of '19' in the Database def. of the requested field in your .cfg file, so that in the input field already is '19'.

Good luck
-------
Mart.
Quote Reply
Re: Required data (date) In reply to
Another thing you can do is have a select list for the years.

Another thing you can do is to require four digits.

In the field definition, set the "Maximum Length" for the field to 4 and set the "Regular Expression" to '\d{4}'. This will require at least four digits to be entered.

You might also make a notation on the form that 4 digits are required.

------------------
JPD