Skip to main content
Logo Appt Light

Success Criterion 3.2.2 - Level A

On Input

Ensure it is predictable what will happen when entering data. In case the focus moves automatically on correct input, this should be indicated in advance. Indicate if a new screen will be opened when submitting a form. Unexpected actions can confuse users with visual or cognitive impairments.

Impact

Users with visual or cognitive impairments may be confused by unexpected actions.

Check

“Are there any unexpected actions while entering data?”

This can be tested without assistive technologies.

Solution

Check input behavior

On Android, be careful when using TextWatcher methods. Do not trigger a change of context when text changes.

private val textWatcher = object : TextWatcher {
  override fun afterTextChanged(s: Editable?) {
    // Ignored
  }

  override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
    // Ignored
  }

  override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
    // Do not change context
  }
}

Resources

Feedback?

Let us know!