I have a suitelet and I am trying to stop the brow...
# suitescript
b
I have a suitelet and I am trying to stop the browser from autofilling the input fields. autoComplete="off" doesn't seem to be working. Is there a Suitescript native method? Or just a different way?
m
This has been a pretty big complaint of mine for many years now, and my understanding is that it's a browser issue; Chrome, at the very least, apparently made the decision to ignore
autocomplete="off"
a while back despite very compelling use-cases for it. I've given up hope on them changing their mind and I've learned to just deal with it, but I agree that it's annoying. If anyone else has any suggestions on decent workaround solutions though, I'd love to hear it.
g
you mean preventing the browser from following the user’s wishes?
m
@Gerald Gillespie There are a number of legitimate reasons that a form or specific field should not use autofill even if the user wants autofill on in most cases. One example in our case is something akin to registration forms, where the same user fills out the same form multiple times, but always with different information. NetSuite's design also puts their own dropdown styling on top of normal input fields, so the browsers autofill blocks the dropdown menu - that's the worst example I've seen and one where the form designer knows their use-cases better than the browser does so their wishes should be respected.