[TYPO3-english] How to make a select box mandatory in TCA.php

Peter Russ peter.russ at 4many.net
Wed Oct 28 11:25:49 CET 2009


--- Original Nachricht ---
Absender:   Samrat Chakraborty
Datum:       28.10.2009 05:11:
> Hi,
> I want my drop-down box to be mandatory. but i am not getting how to
> achieve this.
> I have tried
> "country" => array (
>                   "exclude" => 0,
>                   "label" =>
> "LLL:EXT:dcdgooglemap/locallang_db.xml:tx_dcdgooglemap_poi.country",
>                   "config" => array (
>                         "type" => "select",
>                         "foreign_table"       => "static_countries",
>                         "items" => array(
>                                    array( '', 0 )
>                                 ),
>                         "size" => "1",
>                         "minitems" => "1",
>                         "maxitems" => "1",
>                         "eval" => "required",
>                   )
>             ),
> 
> but it is not working. can any one please help me out with this i have a
> deadline to meet.
> Thanks in advance
> Thanks and Regards
> 
> Samrat Chakraborty
> 
> Software Engineer
> Consulting Group
> I Tech. Tower, 6th Floor I
> L&T Infotech Ltd. I Powai, Mumbai I
> Ph: 022 6776 7327 I Extn:7327 I
> Cell:09920563033
> 
> 
> Larsen & Toubro Infotech Ltd.
> www.Lntinfotech.com
> 
> This Document is classified as:
> 
> |------|
> | [X]  |
> |------|L&T Infotech Proprietary   |------|
>                                    | [ ]  |
>                                    |------|L&T Infotech Confidential   |------|
>                                                                        | [ ]  |
>                                                                        |------|
> L&T Infotech Internal Use Only   |------|
>                                  | [ ]  |
>                                  |------|L&T Infotech General Business
> 
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system.
> 
> ______________________________________________________________________

Please start a new thread or you will not get any answer.

-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list