Form check - date

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Form check - date

Post by macangelo »

Hi
(I already tried this in the German forum (http://forum.phpwcms.org/viewtopic.php?f=16&t=24140) but I could unfortunately not get an answer so please allow me to ask here again)


In my CNT-part form I want to perform the following form field check:

entry in form field is a date, and date is at least 3 days ahead of today (today plus 3)

Is that possible with field-type "Text (special)"? and if it is possible what do I have to write into "value".

Thanks a lot
macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Form check - date

Post by Oliver Georgi »

This is not possible because you need to add a custom function when the form is sent. There is a field for that which can be used to fill in the function name and some optional parameters. It is injected into form processing and can trigger form errors.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply