[TYPO3-dev] TCA user type - required
Steffen Kamper
info at sk-typo3.de
Tue May 18 15:59:44 CEST 2010
Hi,
Boros Attila schrieb:
> Hi,
>
> I have a 'type' => 'user' field in TCA which should be mandatory. How
> can I do this? It doesn't have an eval property which I could set to
> required.
>
as the type is user core doesn't know what happens inside so it can't do
an eval.
Internally tceforms has an array for required fields and adds fields
from eval "required" to this array. Example:
$this->registerRequiredProperty('field',
$table.'_'.$row['uid'].'_'.$field, $PA['itemFormElName']);
As the function is protected (why?) but the array not (hum :))
you can add your field in the userfunction to the list of required
fields, should work.
vg Steffen
More information about the TYPO3-dev
mailing list