Feature #78999
closedAdd autocomplete attribute to TextfieldViewHelper
0%
Description
It would be nice if we could have the possibility to set the autocomplete attribute to the TextfieldViewHelper.
This attribute indicates whether the value of the input field can be automatically completed by the browser based on the user inputs to similar fields.
Possible values are:
off: The user must explicitly enter a value for every use. (Default)
on: The browser is allowed to automatically complete the value based on values that the user has entered during previous uses.
I made a patch related to this feature. Will push that commit, if this feature is relevant.
Files
Updated by Midhun Devasia over 7 years ago
- File 0001-FEATURE-Add-autocomplete-attribute-to-TextfieldViewH.patch 0001-FEATURE-Add-autocomplete-attribute-to-TextfieldViewH.patch added
off: The user must explicitly enter a value for every use. (Default)
sorry, no 'default' value
updated the commit message in the patch
Updated by Midhun Devasia over 7 years ago
- File deleted (
0001-FEATURE-Add-autocomplete-attribute-to-TextfieldViewH.patch)
Updated by Georg Ringer over 7 years ago
- Status changed from New to Needs Feedback
THanks for creating the issue!
There is no reason to add any possible attribute to all ViewHelpers, as there is already a nice way:
<f:form.textfield additionalAttributes="{autocomplete:'1'}" />
Does that work for you?
Updated by Midhun Devasia over 7 years ago
Yes, I got it. It is working for me. I haven't noticed that `additionalAttributes` yet.
Thank you
Updated by Georg Ringer over 7 years ago
- Status changed from Needs Feedback to Closed
closing this as there is a proper way to make this possible