Bug #94307
closedf:form.hidden inconsistency for disabled attribute
0%
Description
These tags will all throw an exception:
<f:form.hidden name="test" value="1" disabled />
<f:form.hidden name="test" value="1" disabled="disabled" />
Exception:
Undeclared arguments passed to ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper: disabled. Valid arguments are: additionalAttributes, data, aria, name, value, property, class, dir, id, lang, style, title, accesskey, tabindex, onclick
Other f:form.* tags allow disabled="disabled" so the behavior is inconsistent .
Updated by Georg Ringer 9 months ago
- Status changed from New to Needs Feedback
thanks for creating the issue.
can you tell if this feature request/bug report is still valid and if so what is a use case for that? hidden fields are not shown to the user, why defining as disabled?
Updated by Aimeos no-lastname-given 9 months ago
Georg Ringer wrote in #note-1:
can you tell if this feature request/bug report is still valid and if so what is a use case for that? hidden fields are not shown to the user, why defining as disabled?
Sometimes, what should be sent to the server depends on what the user selects in the frontend. For example, there are two options and both require sending additional data to the server in a hidden field and by default, one or both must be disabled to avoid wrong processing at the server side.
Updated by Garvin Hicking 9 months ago
- Complexity set to easy
- Sprint Focus set to On Location Sprint
Updated by Garvin Hicking 9 months ago
- Status changed from Needs Feedback to Accepted
Updated by Garvin Hicking 9 months ago
Should be adressed via https://github.com/TYPO3/Fluid/pull/859
Hope we'll remember to close this ticket when it gets merged 😬
Updated by Simon Praetorius 9 months ago
- Status changed from Accepted to Resolved
This has been fixed in Fluid Standalone and will be included in the next minor release of Fluid.