Succescriterium 1.3.5 - Niveau AA
Identificeer het doel van de input
Zorg dat het bij invoervelden duidelijk is welke informatie van de gebruiker wordt verwacht. Stel het juiste invoertype in, zodat bijvoorbeeld het e-mailadres automatisch kan worden aangevuld. Dit is sneller voor iedereen en voorkomt fouten bij gebruikers van hulpmiddelen.
Impact
Geef duidelijke instructies en zorg dat velden automatisch ingevuld kunnen worden door hulpsoftware.
Voor mensen met een cognitieve beperking zijn duidelijke instructies belangrijk.
Voor mensen met een motorische beperking is het automatisch invullen van formulieren een stuk makkelijker.
Voor iedereen zijn duidelijke instructies en automatisch aanvullen van invoer makkelijk in gebruik.
Controleren
“Wordt het doel van het invoerveld duidelijk gemaakt?“
Dit kan visueel getest worden, er zijn geen hulpmiddelen nodig.
Oplossing
Invoer type instellen
On Android, you can set a content type by using the android:optimizeForAutoFill
property.
The following values are defined:
creditCardExpirationDate
: auto-fillcredit card expiration datecreditCardExpirationDay
: credit card expiration daycreditCardExpirationMonth
: credit card expiration monthcreditCardExpirationYear
: credit card expiration yearcreditCardNumber
: credit card numbercreditCardSecurityCode
: credit card security codeemailAddress
: email addressname
: namepassword
: passwordphone
: phone numberpostalAddress
: postal addresspostalCode
: postal codeusername
: username
Example of using autofillHints
:
Toetsenbord type instellen
On Android, you can set a keyboard type by using the android:inputType
property. You can combine values with each other.
The following constants are defined:
date
: for entering a datedatetime
: for entering a date and timenone
: to disable inputnumber
: for entering a numbernumberDecimal
: for entering decimal numbersnumberPassword
: for entering a numeric passwordnumberSigned
: for entering a positive or negative numberphone
: for entering a telephone numbertext
: for entering normal texttextAutoComplete
: to enable automatic completiontextAutoCorrect
: to enable automatic correctiontextCapCharacters
: to automatically convert characters to uppercasetextCapSentences
: to automatically capitalize sentencestextCapWords
: to automatically capitalize wordstextEmailAddress
: for entering an email addresstextEmailSubject
: for entering the subject of an emailtextFilter
: for entering text to filter withtextImeMultiLine
: to force entering multiple lines of texttextLongMessage
: for entering a long messagetextMultiLine
: for entering multiple lines of texttextNoSuggestions
: to disable suggestionstextPassword
: for entering a passwordtextPersonName
: for entering a nametextPhonetic
: for entering phonetic texttextPostalAddress
: for entering a postal addresstextShortMessage
: for entering a short messagetextUri
: for entering a URLtextVisiblePassword
: for entering a visible passwordtextWebEditText
: for entering text in a web formtextWebEmailAddress
: for entering an email address in a web formtextWebPassword
: for entering a password in a web formtime
: for entering a time
Example of using inputType
: