NetTalk Central

Author Topic: Chrome & Default Values  (Read 4246 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Chrome & Default Values
« on: September 10, 2017, 12:51:12 PM »
Hi Guys,

What determines the value that Chrome defaults for an input field?

I have a LOC:Login field in the login NWF, which Chrome sometimes fills with a cellular number, and other times with random text.

I would like to have this field always as blank?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Chrome & Default Values
« Reply #1 on: September 10, 2017, 10:38:33 PM »
I asked Google and the solution seems to be to add autocomplete="off" to the form or field.

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Chrome & Default Values
« Reply #2 on: September 12, 2017, 01:17:55 AM »
Thank you Bruce,

How do I include this the form HTML section;

<form action="/action_page.php" autocomplete="off">

To make it part of the "Form Action"?

I've tried an HTML routine "before <form>" and "after <form>", but does not seem to have an effect.



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Chrome & Default Values
« Reply #3 on: September 12, 2017, 09:42:24 PM »
I'd likely add it into loc:enctype just before the <form tag is created.
If you right-click, source on a procedure and search for <form you'll see what I mean.

That said the fields already have autocomplete="off" on them so I'm not sure if this will have any effect on the browser.

cheers
Bruce