Page 1 of 1

Form check - date

Posted: Sun 8. Sep 2013, 15:19
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

Re: Form check - date

Posted: Tue 10. Sep 2013, 06:23
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.