What's the logic behind browsers autocomplete - how do they differentiate between multiple forms on one site or even page? Let's assume a situation where you have an ecommerce-site with a login (user/pass) and gift-cards on checkout (giftcardnumber/pass). How do you tell a browser that these are not the same fields and must be stored separately?
Of course we could just disable autocomplete on the 2nd form, but that's not a pretty solution.
Is there a standard on autocompletion? Is the forms ID the key for storing it? Since Windows 10, the situation seems to be even more complicated, thanks to the cloud-sync feature, which syncs passwords and other form-values across browsers.
Thanks!
You can handle multiple separate forms on a single page by including a hidden field identifying the submitted form. You can use formsets to create multiple different instances of the same form on a single page.
Autocomplete And Autofill #Autofill is a browser feature that allows people to save information (on the browser or the OS) and use it on web forms. autocomplete is an HTML attribute that provides guidelines to the browser on how to (or not to) autofill in fields in a web form.
Yes, we can use multiple tags inside one single HTML page. Sometimes we need to submit two distinct data from a single HTML page. To do so we need to use multiple tags.
After you interact with the first field in the address form, the browser shows you a list of saved addresses. You can choose one, and the browser fills in all fields related to the address. Autofill makes filling out forms fast and easy. Not every address form has the same fields, and the order of fields also varies.
Here's a good answer that explains a little on how browser's determine autocomplete
Basically, browser's rely on the "name" attribute of an input and a lot of other contextual information (class/input type/label) to determine what fields can be autocompleted with what (type) of information.
Here's is a little more detail on the autofill
html standard. https://html.spec.whatwg.org/multipage/forms.html#autofill
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With