自动填充/自动完成不起作用,如果表单有超过 200 个输入字段 [英] Autofill/Autocomplete not working, if the form has more than 200 input fields
问题描述
我正在处理一个 HTML5 表单,它有 200 多个输入字段,在这些字段中,我需要自动填充两个字段,基本上是姓名和电子邮件地址,所有其他字段都标记为 自动完成=关闭
.
I am working on a HTML5 Form which has more than 200 input fields, among these fields I need to autofill two fields basically which are name and email address, all other fields are marked as autocomplete=off
.
据观察,仅当表单中的输入字段总数 <=200 时自动完成才有效,这在 Google Chrome 和 Microsoft Edge 浏览器中发生.
It is observed autocomplete works only if total number of input fields in the form is <= 200, this is happening in Google Chrome and Microsoft Edge browsers.
有人遇到过这个问题吗?
Has anyone come across this issue?
推荐答案
尝试删除 autocomplete="off";来自<表格>标签并仅在姓名和电子邮件的输入标签中输入自动完成.
Try removing autocomplete="off" from <form> tag and enter autocomplete in input tags of name and email only.
这篇关于自动填充/自动完成不起作用,如果表单有超过 200 个输入字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!