cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Date input field

Add a New Topic Reply to Post
Post

Manish - Guest

9:05 am - June 23, 2007

1

Hi, thanks for the great cforms plugin.

It would be great to see a Date input field in the fieldset.

As you must be aware of, date is written in different formats in different parts of the world. Like Date of Birth = 02-04-06 Now its very difficult to decide which one is day, month and year. S, if we have a date field in which a user has to select Day, Month and year from a drop down list, it would eliminate lots of problems.

 

Graeme - Guest

4:23 am - July 2, 2007

2

I'd like to second this. I'm trying to set up a booking request form and being able to validate a date and time would be perfect.

Great plugin by the way.

Oliver - Admin

7:55 am - July 2, 2007

posts 3921

3

Graeme said:

I'd like to second this. I'm trying to set up a booking request form and being able to validate a date and time would be perfect.

Great plugin by the way.


Validation of time and date (of really ANY format) is fully supported as it is.

Use a "single line of text" field, and provide proper regexps to ensure the input format complies with what you require, optionally set a default value to indicates the expected format to the user.

I think there is another post in the trouble shooting forum that has more detail and an example (also, check the Help! page for info on default values & regexps). 

Charles - Guest

2:09 pm - September 25, 2007

4

Hi:

It will be great to add something to the date fields so that when a user click in the calendar icon (on the right side of the date field) a pop up opens and then the user choose the exact date including day, month and year. Like when you make a booking in a travel website.

Keep the great job!

Charles

Ann - Guest

4:54 pm - September 25, 2007

5

Here is good library of date validation regexps to be used
together with Olivers instructions above:

http://regexlib.com/Search.aspx?k=datetime

Oliver - Admin

8:36 pm - September 25, 2007

posts 3921

6

Thank you Ann for helping out :-)

Charles, a calendar type feature is being considered for v5.5, but I can't promise just yet.  

Reply to Post


Reply to Topic: Date input field
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Topic Reply:

Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
4 + 11
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

Search