You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occurs only when running into a serverside validation error and the form is being rendered again. It's the checked argument that is causing the problems and I'm convinced now that it's not necessary at all. In my project I've removed them and it's not causing any problems anymore...
kitzberger
added a commit
to GFEMediaGmbH/headless_powermail
that referenced
this issue
Aug 2, 2024
This occurs on failed serverside validations: The form field "tx_powermail_pi1[field][mycheckboxes][][]" is invalid. Reason: "[]" used not as last argument, but somewhere in the middle (like foo[][bar]).
Related: TYPO3-Headless#34
Removing the attributes checked from the viewhelper "call" didn't solve all problems. So I super-simplified the RegisterFieldViewHelper to the bare minimum, see #37
I cannot see why this viewhelper was so complicated in the first place. Maybe left-overs?
@lukaszuznanski, I stumbled upon this issue again and tried to make sense of what's the real problem here.
Maybe you can help me understand this excerpt from the check/radio/select/country field partials:
It's used to create the trustedProperties, right? E.g.
Why does
headlesspowermail:form.registerField
have to have the parametersvalue
andchecked
though? In my opinion that's not necessary at all.And
checked
is using the prefillMultiField viewhelper with a wrongcycle
parameter, what's the intention behind that?Originally posted by @kitzberger in #29 (comment)
The text was updated successfully, but these errors were encountered: