Scriptcase avoid browser prefill field
- SCRIPTCASE AVOID BROWSER PREFILL FIELD REGISTRATION
- SCRIPTCASE AVOID BROWSER PREFILL FIELD PASSWORD
- SCRIPTCASE AVOID BROWSER PREFILL FIELD FREE
Now, if you want to go one step further, you can do this:ĭuring the OnLoad Event of when page loads, check the phone field using JavaScript, and if the value equals one space (" ") then overwrite it with an empty string using JavaScript once onLoad is triggered. This should prevent the pre-filling from occuring without needing to use javascript. Given the method you've chosen, what you should be able to do is, when rendering the phone field, add a value=" " attribute into the input tag, instead of using JavaScript. Hope this helps, let me know how you get on, and if you have any other questions.
SCRIPTCASE AVOID BROWSER PREFILL FIELD FREE
Otherwise, export all your setting from your browsers and uninstall both browsers, then reinstall from scratch FF and chrome, then test your webpage, then feel free to import your exported settings back.Īlso, test on IE even if it is for the insight it may give you, know what I mean? So, you end up thinking it's a global issue with your form, simply because of one bad entry and because your second installed browser copied and replicated the bad entry rule from your first browser, making it look like a real, universal problem to you, get me? So try the browsers InPrivate modes, or try the browsers from a different installation or a different computer, or from a virtualpc instance you may have.
SCRIPTCASE AVOID BROWSER PREFILL FIELD REGISTRATION
Have you also tried changing positions of fields? What's happened?Īlso, just to make sure, you can turn off auto complete on a particular item during registration without worrying that it will be off during login (cuz it won't) unless you turned it off for the login fields as well, and of course you have no need to.Īlso, delete your unused saved form auto complete stuff, could just be a local issue with your version, you may have entered a bad value one day in one of the browsers, and then you installed the other browser (chrome or FF), and then the newly installed browser copied the rules exactly as they were from your original browser. Once a certain number of digits are filled, you can auto focus using JavaScript the next phone segment field so it's easier for user. Change it to something real and see what happens.Īlso, consider having 3 field for phone number, area code, prefix, suffix. I am getting this behaviour on Chrome, FF, (not sure about IE, got an archaic version of that on my machine, don't even want to start worrying about IE yet.)Ī home number cannot be 30 characters, this is probably why the browser is assuming it could be a username or login email due to the size. Or inject some invisible element inbetween these two fields?
SCRIPTCASE AVOID BROWSER PREFILL FIELD PASSWORD
Or some way of telling the browser that the field above the password field has nothing to do with it, or that the password field is not used for authentication purposes. I was thinking more in the direction of reorganizing the fields somehow to avoid this behaviour. That's why I don't want to turn autocomplete off altogether. Why I am not interested in the non-standard autocomplete attribute for the phone field, is that I do want user to be able to fill this form as easily as possible and if they have previously entered their phone number on other sites (into fields called "phone") they could benefit from this showing up as they start typing into the field. The "phone" field gets, annoyingly, prepopulated with a username, as I guess what the browser is doing - the browser finds a field of type password and assumes the text input field just before it is a username field. Basically, on my registration form there are fields "phone" and "password" placed one above the other. Autocomplete="off" is not what I am after.