NetTalk Central

Author Topic: Disable Browser Automplete?  (Read 2853 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Disable Browser Automplete?
« on: July 11, 2023, 09:30:20 PM »
Hi,

Is there a way to prevent/disable the browser from filling the fields on an entry form from previous data entry or from the saved data in the browser?
Or to have this as an option for the user?

Almost all of the data entry will be order processing and in most cases this could lead to incorrect results if the fields are autofilled and the user accepts the data without checking proprly.


thanks

Johan



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disable Browser Automplete?
« Reply #1 on: July 11, 2023, 10:08:14 PM »
yes. see "Allow Auto-Complete" checkbox on the Settings tab for the field.
For password fields see also "prevent browser password autocomplete".

Cheers
Bruce

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Disable Browser Automplete?
« Reply #2 on: July 11, 2023, 11:35:25 PM »
Hi Bruce

Sorry, my question was incomplete, I did see that field and it was off,
so I assumed it was linked to the auto complete lookup as it was not working.

Checking it again and I also inspected the HTML as per attached pic,
the option is unchecked,
the HTML confirms  autocomplete="off"
I pasted the HTML for the input field into the w3schools example as per below.

Something weird happening and I can't seem to find the issue.
HTML seems broken and throwing away the autocomplete=off for all the fields.

Just removing the "e" in name="cliemail" fixes it.
Still not sure why
typing the name into of the existing fields works,
only when pasting generated NTWS HTML does it seem to break


Johan



https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_autocomplete_off

<!DOCTYPE html>
<html>
<body>

<h2>Autocomplete on/off</h2>

<form action="/action_page.php">
  <input type="text" name="fname" autocomplete="off"><br>
  <input type="text" name="lname" autocomplete="off"><br>
  <input type="text" name="cliemail" autocomplete="off"><br>
  <input type="submit">
</form>

<p>Fill in and submit the form, then reload the page to see how autocomplete works.</p>
<p>Notice that autocomplete is "on" for the last name field, but "off" for the first name field.</p>

</body>
</html>

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Disable Browser Automplete? additional example
« Reply #3 on: July 12, 2023, 12:27:40 AM »
Hi,

Attached is a simplified example
Something really strange

Not sure this is a NTWS problem, something about "email" or the sequence of the HTML that is breaking the autocomplete

regards

Johan


JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Disable Browser Automplete? solved? sort of.
« Reply #4 on: July 12, 2023, 09:17:40 AM »
Hi,

After a bit more playing and the user group this evening , think I can confirm that it's the chrome occurrence that I had open that was causing the issue.
If I open a different copy of chrome using a different profile, it's working as it's supposed to.

However it's not as clear as that, it seems as if it could be hit and miss sometimes.

Bruce also pointed me to this site which can be a good one to add to my bookmarks.
https://caniuse.com/?search=autocomplete

thanks

Johan