Issue Bug Resolved

#111280 EXT:form: Honeypot ignores fluidAdditionalAttributes, so the autocomplete editor has no effect

Lina Wolf 10/29/26, 17:51 updated 11/17/26, 21:10

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

  1. Lina Wolf commented and changed status Under Review Resolved done 0 % 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.