1

我想知道有没有办法添加自己的 javascript 代码,这些代码将在 Alt-Doc.php 的表单处理中执行。

我需要根据其他选择框(选择事件)更改选择框值。

可能吗 ??

4

1 回答 1

0

You can use the $TCA['tt_content']['ctrl']['requestUpdate'] = "yourfieldname" to let TYPO3 add the js code (onchange event) to the given field. You can then write different palettes to yout TCA with different values. It's done this bay by tt_content (field CType) and also in the pages table (type sysfolder vs. "normal page").

The other form elements completely change in those two cases. Of course, this will cause a reload of the whole form, so you should place a field with this behavior at the top of the form.

于 2012-06-29T07:06:59.593 回答