The Shoe Shiner
The Shoe Shiner

Reputation: 756

Vaadin Flow TextField Browser AutoFill

According to this old thread:

https://vaadin.com/forum/thread/18510843/textfield-browser-autofill

It's possible to tell the browser to auto fill a form. I am able to get the browser to populate values by setting the "name" and "autocomplete" attributes, however the browser does not seem to remember new values entered into the Vaadin form. There are appear to be some restrictions on when Chrome/Firefox will do this (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) but some of those restrictions are not easily implemented in Vaadin.

Does anyone have an example of auto fill working both directions (browser filling in values and also remembering new values)?

Upvotes: 2

Views: 503

Answers (1)

Lisa Hennecart
Lisa Hennecart

Reputation: 79

you can take a look at the LoginForm, it does what you want.

Edited : Or to control it with vaadin you could try it with this autosuggest add-on and update the list of suggestions with the new values.

Upvotes: 0

Related Questions