Turn off autocomplete for single webpage

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.

KC Adam

Posted 2019-04-29T14:11:37.500

Reputation: 11

Answers

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">

Luis Alberto Barandiaran

Posted 2019-04-29T14:11:37.500

Reputation: 225

-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%.

tech team

Posted 2019-04-29T14:11:37.500

Reputation: 1