[Typo3-dev] BEform / 'type'=>'user' / typo3FormFieldSet

Thomas Murphy murphy at thepanemgroup.com
Sat Dec 11 19:32:39 CET 2004


Thomas Murphy wrote:
> I figured out it might have something to do with the way typo refreshes 
> the form after loading it an putting all the values in place with the 
> 'typo3FormFieldSet' javascript function at the bottom of the html source.

O.K. - found it myself.
Had to insert the JS-Code into the extJSCode variable of the parent object.

---snip----

$paramsList = "'".$PA['itemFormElName']."','"
.implode(',',$evalList)."','".trim($config['is_in'])."',".
(isset($config['checkbox'])?1:0).",'".$config['checkbox']."'";

$PA['pObj']->extJSCODE.='typo3FormFieldSet('.$paramsList.');';

---snip----

Maybe TYPO3 Core API should be extended by these lines, otherwise the 
example won't work AFAIK. (?)

bye,
Murph




More information about the TYPO3-dev mailing list