[TYPO3-mvc] Validate input field in TYPO3 BE

Kay Strobach typo3 at kay-strobach.de
Thu May 5 09:39:58 CEST 2011


Hi,

use the TCA eval feature:

http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.0.0/view/4/2/#id4080787

Regards
Kay

Am 05.05.2011 04:06, schrieb Rayuth You:
> Hi all
> 
> I use typo3 4.5, I want to validate my field in BE with regular
> expression. I tried in model with @validate RegularExpression(). But it
> does not work.
> 
> e.g.
> /**
>  * birthDate
>  *
>  * @var string $birthDate
>  * @validate
> RegularExpression('^(0[1-9]|[12][0-9]|3[01])[-](0[1-9]|1[012])[-](19|20)\d\d$')
> 
>  */
> protected $birthDate;
> 
> I used to do validation in FE but I do not know, it work or not in BE.
> As I tried to do the same thing, it does not work in BE.
> 
> Is possible to do? If so, how/what need I do?
> 
> Thanks
> Yuth


-- 
http://www.kay-strobach.de - Open Source Rocks


More information about the TYPO3-project-typo3v4mvc mailing list