Skip to main content

OTP Input

The OTP Input allows users to enter one-time passwords in segmented fields for multi-factor authentication.

Accessibility Support

Out of the box, the Telerik and Kendo UI Otp provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The Otp is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation and provides options for managing its focus and is tested against the most popular screen readers.

OneTimePassword

ARIA Attributes

AttributeDescription
role="group"Sets the proper role for the OTP.
type="hidden"The hidden input holding the OTP inputs value.
aria-hidden="true"Hides the hidden input from assistive technologies.

Keyboard Navigation

TriggerBehavior
Typing in the inputSets the value in the input and moves the focus to the next focusable input in the OTP. (if any)
TabFocuses the next input in the OTP. If the focus is on the last input, focuses the next focusable element on the page.
Shift + TabFocuses the previous input in the OTP. If the focus is on the first input, focuses the previous focusable element before the OTP.
ArrowRightMoves the focus to the next focusable input in the OTP. (if any)
ArrowLeftMoves the focus to the previous focusable input in the OTP. (if any)
BackspaceDeletes the value of the focused input and moves the focus on the previous input. (if any).
DeleteDeletes the value of the focused input.

UX Behavior

FeatureDescription
Auto-advanceFocus moves to the next input automatically after each character is entered.
PastePasting a code string fills all inputs at once.
SeparatorGroups of inputs can be visually separated by divider characters.
MaskedCharacters can be hidden like a password field.

OneTimePasswordInput

Testing

The Otp has been extensively tested automatically with axe-core and manually with the most popular screen readers.

Screen Readers

The Otp has been tested with the following screen readers and browsers combinations:

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS

Resources

Feedback