1

I have a website which is build with asp.net. There is a text-box which can be used to fill quantity. Sometime a strange icon like a human appear on text box. Attached image below. This strange icon appear only in Mac Safari browser.

enter image description here

What is it?

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
user1926138
  • 1,464
  • 7
  • 34
  • 53

1 Answers1

0

It is the autofill functionality, indeed. Read more about it on Apple's support site.

The icon and the arrow appear when you click on a field that has a certain HTML name like "name", "password", "email", "phone" etc. The icon depends on the field name. It is a human silhouette for "name", "email" etc but it is a key for "password" and other sensitive information (credit card number, f.e.).

It can use information from external sources (Contacts) and information previously in Safari (passwords, credit card information, regular data filled in web forms).

Each of these sections can be individually enabled/disabled and the data it contains can be edited in the Safari's Preferences.

axiac
  • 68,258
  • 9
  • 99
  • 134
  • In my application, this text-box is for quantity input. Can it be auto-filled ? – user1926138 Mar 17 '17 at 08:26
  • The browsers usually remember the values the user puts in the fields of type `` in a form and suggest them when the same form is used again. The passwords (``) have a different handling. If in the past a field was filled with only one value, on subsequent displays some browsers automatically put the value in the field; others suggest previously used values only when the user starts typing in the field. The autofill behaviour is a functionality that the browser producers provide; it is not required by any web standard. You cannot rely on it. – axiac Mar 17 '17 at 09:45
  • However, you can put a default value for the field in HTML: ``. The browser renders the field and puts `42` in it. The user can remove or change the value but if they don't, `42` is the value submitted to the form's action. – axiac Mar 17 '17 at 09:46