#111280 EXT:form: Honeypot ignores fluidAdditionalAttributes, so the autocomplete editor has no effect
Description
Problem
The Honeypot element of EXT:form declares an editor for the autocomplete attribute at properties.fluidAdditionalAttributes.autocomplete, offering an empty value and off. Setting it has no effect: the value reaches the resolved prototype and is never rendered.
Without the attribute a browser form filler may populate the honeypot. The HoneypotValidator then rejects a submission made by a real person, and the message that comes back cannot be acted on.
Three editors of the element write into fluidAdditionalAttributes, and none of them reaches the markup: 400 placeholder, 600 autocomplete and 800 requiredValidator.
This is about an element whose own editors are discarded. It is not about how reliable a honeypot is against bots.
Cause
Resources/Private/Frontend/Partials/Honeypot.fluid.html spends additionalAttributes on a literal:
additionalAttributes="{aria-hidden: 'true'}"
It never reads element.properties.fluidAdditionalAttributes. Every other frontend partial of the extension does, through formvh:translateElementProperty, and passes its ARIA state in the aria argument of the ViewHelper instead.
The attribute was present until #103776 removed it, because it carried the random field name, which is not a valid autofill field name. off is valid.
Suggested fix
Read the property and move aria-hidden to the aria argument. Only in the visible branch: with renderAsHiddenField the element renders an input of type hidden, which must not carry autocomplete.
- <f:form.textfield ... additionalAttributes="{aria-hidden: 'true'}" tabindex="-1" style="{element.properties.styleAttribute}" />
+ <f:form.textfield ... additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}" aria="{hidden: 'true'}" tabindex="-1" style="{element.properties.styleAttribute}" />
Plus autocomplete: 'off' as the default under properties.fluidAdditionalAttributes in Configuration/Form/Base/FormElements/Honeypot.yaml.
Reviews 2
History 15
-
Gerrit Code Review pushed patch set 1 for main to change 97216 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-29T18:02:27+00:00" > 10/29/26, 18:02 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97216 <span data-processor="relativetime" data-value="2026-11-10T13:01:20+00:00" > 11/10/26, 13:01 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97768 <span data-processor="relativetime" data-value="2026-11-17T20:32:23+00:00" > 11/17/26, 20:32 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 97768 <span data-processor="relativetime" data-value="2026-11-17T20:54:25+00:00" > 11/17/26, 20:54 </span>
-
Lina Wolf commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-17T21:10:12+00:00" > 11/17/26, 21:10 </span>
Applied in changeset commit:64e3e7593374387ca5d32fd2878c47b3ebeba189.