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


 




There ist a list for RegExp

Add a New Topic Reply to Post
Post

WEBchris - Guest

8:37 pm - January 21, 2008

1

Please replace the ??? with your data!

  • Your URL: 
  • The browser used: Mozilla Firefox 5.0
  • cforms version: 7.2
  • Your Wordpress version: 2.3.1

[desc]: Salut!
I have problems with cformsII. I declaire all fields but i have problems with the regular expressions. I have a birthday-field witch i want to requiere and i would like to check this field for un correct date-format. (dd.MM.yyyy). I define the field as 'textfield' because the 'date entry/Dialog is not practical for the birthday-date. And also i would like to constrain the input only for numbers.

Witch regular expression can i use. There are one list or another reference?

Merci bien for your help.

WEBchris.

----
I use WP 2.3.1 and cformsII v. 7.2

 

Oliver - Admin

9:29 pm - January 21, 2008

posts 3909

2

I'm curious, a birthday is a regular day, why wouldn't the datepicker dialog be a good solution?

The help page lists a few resources for regexp, I'm sure there are plenty for proper date validation. Have you checked those links already?

WEBchris - Guest

10:56 pm - January 21, 2008

3

the date-picker starts today (01/2008) and the birthday is for ex. 01/04/1965.And to achieve the 01/04/1965 you must past evrey month between today and this date. This takes very long. But it is working well!!

Thank you, now i have found the resources for Regexp and i also found my errors. I have take some whitespaces between '#' ,'|' and'^'. Without this whitespaces the form is running.

 

Oliver - Admin

11:19 pm - January 21, 2008

posts 3909

4

I understand, however you could consider a slight change in cforms.php:

look for this line (near the bottom):

"\t".'dp.setTodayText(\''.stripslashes(....

and add this line right underneath:

"\t".'dp.showYearNavigation();'."\n".

This will add a convenient Year selector, perhaps this will do?

 

PS: the single quotes above need to be real single quotes, copy&paste may not work! 

Reply to Post


Reply to Topic: There ist a list for RegExp
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:
11 + 1
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

Search