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


 




Simple date field and date check

Add a New Topic Reply to Post
Post

GT - Guest

8:50 pm - April 24, 2008

Please replace the ??? with your data!

  • Your URL: http://
  • The browser used: Firefox 2
  • cforms version: 8.4
  • Your Wordpress version: 2.5


Hi,

This is a great plugin and I want to suggest a feature: a simple date field (without "calendar") and date checks (e.g.: given_date <=> mm/dd/yyyy, today - given_date > mm/dd/yyyy).

I need this feature to accept e-mails only from 18+ y.o. people

TIA and sorry for my english

PS: Can I do this check by using my-functions.php ?


Oliver - Admin

7:46 am - April 25, 2008

posts 3562

No unfortunately, there is currently no _proper_ way that allows you to incoporate your own validation logic, outside of regular expressions and the other config settings.

What you could do is *if it's a must have*, is to hardcode it:

  • in lib_validate.php for non Ajax submissions
  • using jQuery on onclick handlers to prevent Ajax submissions
Add a New Topic Reply to Post


Reply to Topic: Simple date field and date check
PLEASE READ THE FAQs FIRST! THANK YOU.

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 9 + 4        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)