-1

I have a form in one of my pages that I want to prevent it being filled by the Autocomplete(Google Docs, Last Pass, etc.) I know the user can turn off the autocomplete by themselves, however, it is hard to make sure all customer do this so I wonder if there is a way to make the form unfillable by the browser(modify the html code, javascript, etc..)

3 Answers3

1

Add the property autocomplete to the field

<input autocomplete="off" />
Mouser
  • 13,132
  • 3
  • 28
  • 54
0

turn off autocomplete on the form element <form autocomplete="off">

Although alot of browsers ignore this flag, so a way to prevent that would be to dynamically add readonly to the inputs and remove it on click.

thepi
  • 342
  • 2
  • 12
0

you can use the attribute autocomplete ='off' in your form tag or any particular input tags.