[FLOW3-general] "change" event on fluid form viewhelpers

Bastian Waidelich bastian at typo3.org
Tue Feb 14 16:06:53 CET 2012


Thomas Plessis wrote:

Hi Thomas,

> There're no 'onchange' event on fluid form view helpers like select or text box?
> Is there a way to add it?

<f:form.select additionalAttributes="{onchange: 'alert(\'inline js is 
bad\')'}" />

or you could add the event handler "unobtrusively" of course:

<f:form.select id="mySelect" />

in SomeFile.js:

document.getElementById('mySelect').onchange ...


HTH
Bastian


More information about the FLOW3-general mailing list