Enum AutoCompleteType
The AutomCompleteType
is a string-associated enum of
browser-supported autocomplete attribute values.
public enum AutoCompleteType
- Extension Methods
Fields
AdditionalName = 5
The middle name.
AddressLevel1 = 20
The city or locality.
AddressLevel2 = 21
The state, province, prefecture, or region.
AddressLevel3 = 22
The zip code or postal code.
AddressLevel4 = 23
The country name.
AddressLine1 = 17
The line 1 of a street address. For example, "1234 Main Street".
AddressLine2 = 18
The line 2 of a street address. For example, "Apartment 123".
AddressLine3 = 19
The line 3 of a street address. For example, "c/o Jane Doe".
Bday = 40
A birth date, as a full date.
BdayDay = 41
The day of the month of a birth date.
BdayMonth = 42
The month of the year of a birth date.
BdayYear = 43
The year of a birth date.
CcAdditionalName = 29
The middle name as printed on or associated with a payment instrument such as a credit card.
CcCsc = 35
The security code for your payment method, such as the CVV code.
CcExp = 32
A payment method expiration date, typically in the form "MM/YY" or "MM/YYYY".
CcExpMonth = 33
A payment method expiration month, typically in numeric form (MM).
CcExpYear = 34
A payment method expiration year, typically in numeric form (YYYY).
CcFamilyName = 30
The family (or "last") name as printed on or associated with a payment instrument such as a credit card.
CcGivenName = 28
The given (or "first") name as printed on or associated with a payment instrument such as a credit card.
CcName = 27
The full name as printed on or associated with a payment instrument such as a credit card.
CcNumber = 31
A credit card number or other number identifying a payment method, such as an account number.
CcType = 36
The type of payment instrument, such as "Visa", "Master Card", "Checking", or "Savings".
Country = 24
The country code.
CountryName = 25
The country name.
CurrentPassword = 12
A current password. When filling in an existing password.
Email = 9
The email address.
FamilyName = 6
The family (or "last") name.
FirstName = 57
Firs name.
GivenName = 4
The given (or "first") name.
HonorificPrefix = 3
The prefix or title, such as "Mrs.", "Mr.", "Miss", "Ms.", "Dr." etc.
HonorificSuffix = 7
The suffix, such as "Jr.", "B.Sc.", "PhD.", "MBASW", etc.
Impp = 51
A URL for an instant messaging protocol endpoint, such as "xmpp:username@example.net".
Language = 39
The language in which the transaction was completed. Use the relevant BCP 47 language tag.
LastName = 59
Last name.
MiddleName = 58
Middle name.
Name = 2
The field expects the value to be a person's full name.
NewPassword = 11
A new password. When creating a new account or changing passwords.
Nickname = 8
The nickname or handle.
Off = 0
Autocomplete is disabled.
On = 1
Autocomplete is enabled. The browser chooses what values to suggest.
OneTimeCode = 13
A one-time code used for verifying user identity.
Organization = 15
A company, business, or organization name.
OrganizationTitle = 14
A job title, or the title a person has within an organization, such as "Senior Technical Writer", "President", or "Assistant Troop Leader".
Photo = 53
The URL of an image representing the person, company, or contact information given in the other fields in the form.
PostalCode = 26
The postal code.
Province = 55
Province.
Sex = 44
A gender identity (such as "Female", "Fa'afafine", "Hijra", "Male", "Nonbinary"), as freeform text without newlines.
State = 54
State.
StreetAddress = 16
A street address. Use multiple address lines when more space is needed.
Tel = 45
A full telephone number, including the country code.
TelAreaCode = 48
The area code, with any country-internal prefix applied if appropriate.
TelCountryCode = 46
A country code, such as "1" for the United States, Canada, and other areas in North America and parts of the Caribbean.
TelExtension = 50
The extension number, if applicable.
TelLocal = 49
The phone number without the country or area code.
TelNational = 47
The entire phone number without the country code component, including a country-internal prefix.
TransactionAmount = 38
The amount, in the currency specified by the transaction currency attribute, of the transaction completed.
TransactionCurrency = 37
The currency in which the transaction was completed. Use the ISO 4217 currency codes, such as "USD" for the US dollar.
Url = 52
A URL, such as a home page or company website address as appropriate given the context of the other fields in the form.
Username = 10
The username or account name.
ZipCode = 56
Zip code.
Remarks
This class lists the autocomplete attirbute options allowing developers to provide the browser with guidance on how to pre-populate the form fields. It is a class rather than a simpler enum to associate each option with the string the browser expects. For more information please review the list of options (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) and the spec (https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).