[TYPO3-dev] What is the best way to add custom JS events on TCA fields in BE?

Peter Klein peter at clioonline.dk
Mon Aug 22 09:40:41 CEST 2011


What is the best way to add custom JS events on TCA fields in BE?

I have an extension with several fields (FlexForm), where I want to
add a custom JS event every time the field is changed (on the clients
side.)

I have looked at rendering the fields as "user", but then I would
loose the standard field setups.

Another option I looked at, was using a wizard, but in both cases I
have to add my JS to the $PA['fieldChangeFunc'] array, and then
re-render each field type manually, which seems way to complicated for
such a simple task.

Is there some other method I have missed?

--
Peter Klein




More information about the TYPO3-dev mailing list