[TYPO3-mvc] Validate input field in TYPO3 BE
Rayuth You
rayuth.you at gmail.com
Fri May 6 07:00:49 CEST 2011
Hi Kay
Thank you for your helpful link.
Thanks
Yuth
On 05/05/2011 02:39 PM, Kay Strobach wrote:
> 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
>
>
More information about the TYPO3-project-typo3v4mvc
mailing list