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

Samrat Chakraborty Samrat.Chakraborty at lntinfotech.com
Wed Oct 28 05:11:28 CET 2009


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.

______________________________________________________________________


More information about the TYPO3-english mailing list