[TYPO3-dev] Re: [Typo3-dev] TCA - "eval = required" for "select"
stefano cecere
scecere at krur.com
Thu Apr 30 14:46:33 CEST 2009
any news on this feature/topic?
thanks
stefano
Jonas DŸbi wrote:
> Hi
>
> I added a select box to the "page" TCA which gets it's options from an
> other table. Nothing special everything works :-)
>
> But I need to set the field as 'required', I need this little yellow
> flag if there is nothin selected.
>
> I already tried this:
> 1. Add a empty Entry within the items array (of course)
> 2. Set 'allowNonIdValues' => 0,
> 3. Set "minitems" => 1,
> 4. Set 'eval' => 'required', (I already knew it doesn't work -> just for
> input)
>
> Is there any possibility to set this field as required?
>
> "tx_xyz_author" => Array (
> "exclude" => 1,
> "label" => "LLL:EXT:xyz/locallang_db.php:pages.tx_xyz_author",
> "config" => Array (
> "type" => "select",
> "items" => Array (
> Array("",""),
> ),
> "foreign_table" => "tx_xyz_people",
> "foreign_table_where" => " ORDER BY tx_xyz_people.uid",
> "size" => 1,
> "minitems" => 1,
> 'allowNonIdValues' => 0,
> "maxitems" => 1,
> 'eval' => 'required',
> )
> ),
>
> Thanks....
> Jonas
>
More information about the TYPO3-dev
mailing list