[TYPO3] Make BE field required with TS

Søren Vedel sv at workhouse.com.br
Wed May 17 03:03:20 CEST 2006


Hi Lucas,

This is the php way to do it:

Add this in the tca.php file in tt_news

'eval' => 'required',

So it will look like this:

		'archivedate' => Array (
			'l10n_mode' => 'mergeIfNotBlank',
			'exclude' => 1,	
			'label' => 'LLL:EXT:tt_news/locallang_tca.php:tt_news.archivedate',
			'config' => Array (
				'type' => 'input',
				'size' => '10',
				'max' => '20',
				'eval' => 'required,date', // Here!
				'default' => '0'
			)
		),

If you don't have access to the files then install the extension 
'quixplorer'.

I don't know if it is possible with typoscript?

Best wishes
Søren Vedel


Lucas Birk wrote:
> 
> Hi,
> 
> Is it possible to make a form field in the BE required via typoscript?
> Specifically, I want to make the Archive Date in TT-News a required field.
> 
> Thanks,
> Lucas.



More information about the TYPO3-english mailing list