cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How can I isert date and time field?
June 29, 2007
3:48 am


I would like to insert date and time fields in my cforms. Any ideas how can I do that?

Thank you!

Best regards

June 29, 2007
6:50 am
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Not sure what exactly you're trying to do. Do want the user to (1) fill in time & date, or (2) do you want to pre-populate these fields, and/or (3) do these fields require validation?

All of the above is possible but require different configuration:

  1. a simple single line of text field would do
  2. you need to use the dynamic forms support (requires some PHP coding, see examples on the HELP! page)
  3. providing regexps would allow user input validation, default values for these fields  to show the format, e.g. dd/mm/yyyy or hh:mm
Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)