Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Eng] Update validation language for SSN input #461

Open
Tracked by #463
nichole-aquino opened this issue Jan 23, 2025 · 0 comments
Open
Tracked by #463

[Eng] Update validation language for SSN input #461

nichole-aquino opened this issue Jan 23, 2025 · 0 comments

Comments

@nichole-aquino
Copy link

nichole-aquino commented Jan 23, 2025

Reference

Design ticket: #389

Overview:

  • Update the error UI to reflect USWDS
  • Allow users to input the SSN with or without dashes
  • Provide a general error message "Enter a valid Social Security number" for all client-side validation. Here is our rationale:
  1. If there are multiple errors, the error message would get quite long and outweigh the benefit of identifying where exactly an error occurred (in a likely instance, someone may have just entered a typo or was mistaken about what the SSN is). A long message, for example, would be:

Social Security Number must have a valid set of digits at the beginning (not 9, 666, or 000), a valid set of digits in the middle (not 00), and a valid set of digits at the end (not 0000).

  1. There isn't any existing documentation on error state variants for SSN, so this would warrant further research to understand the use case better and test, if needed, the most appropriate copy.

AC

The changes should apply to the following error types:

  • Invalid set of digits in all locations.
  • Invalid set of digits at the beginning.
  • Invalid set of digits in the middle.
  • Invalid set of digits at the end.
  • Invalid set of digits in the middle and end.
  • Invalid amount of digits.
@nichole-aquino nichole-aquino added story User story and removed story User story labels Jan 23, 2025
@nichole-aquino nichole-aquino changed the title STUB -- [Eng] Update validation language for SSN input [Eng] Update validation language for SSN input Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant