1

I use a webpage for work which I have several logins for (admin, user, etc) so I utilize Chrome autocomplete for my logins. However, when I create a new user for the system, it autofills my user name in the "Phone Number" field, and my password in the password field intended for the new users password.

Is there a way to disable autocomplete just for these fields so that it does not happen every time I add a new user or edit a current one? I am no expert on HTML, so I have no idea if this can be changed as a visitor to a webpage.

0

From the Mozilla documentation (works with most browsers), just need to add the following to your form element:

autocomplete="off"

You can add it to the whole form, example:

<form method="post" action="/form" autocomplete="off">
[…]
</form>

Or to a single element:

<input type="text" id="cc" name="cc" autocomplete="off">
-1
autocomplete="off" will work for sure either you implement it with form as mentioned below or any single element of input field.

for form

<code><form id="submitForm" method="post" action="/formSubmit" autocomplete="off"></code>

For single element:

<input type="text" id="autoComplete" name="username" autocomplete="off">

try it it will work 100%.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.