Closed doishub closed 1 year ago
I think there is no automatic way to remove all backend listeners at once. However, we could maybe unset $arrData['eval']['submitOnChange']
before the form field is processed.
@Toflar @aschempp what do you think?
Yeah, makes no sense in the FE. There are always going to be hacks like that as the DCA is just not meant to be used in the FE ;)
But what would be the best way to strip this and others you think?
Just remove submitOnChange
, yes. It has no effect in the FE so remove it.
Works 👍 Thank you!
Great! Please update to 5.1.2 stable.
I noticed that when I output a form via
addFieldsFromDca
in the frontend, I still get inline events for the backend delivered with it.Is there already a way to remove attributes from the widget when the fields are built via the
addFieldsFromDca
?