Possible to provide autofill options to the browser?

Pretty much just the above - I'd like to make a form textarea mandatory, but also make the process easy by providing a couple of templates/options to those who still can't be bother to fill it out. Would be nice if I could provide the browser with a few options to populate its autofill.
3 Replies
MarkBoots
MarkBoots•16mo ago
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
StefanH
StefanH•16mo ago
We'll need more info about what you're trying to do
JWode
JWode•16mo ago
Fair enough 🙂 So, in chrome at least, when you click on an input the browser offers a drop down auto complete with data previously entered into fields with the same autocomplete attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete It would be nice if I could inject my own options in there. @markboots. yeah that's probably the option i'll need, I'll give that a try and see if it works as a textarea too, thanks
HTML attribute: autocomplete - HTML: HyperText Markup Language | MDN
The HTML autocomplete attribute lets web developers specify what if any permission the user agent has to provide automated assistance in filling out form field values, as well as guidance to the browser as to the type of information expected in the field.