Closed kevwalsh closed 8 months ago
As mentioned on #8167, https://www.drupal.org/project/telephone_validation and https://www.drupal.org/project/mask look like great options.
@kevwalsh I found this Phone numbers in rich text fields https://github.com/department-of-veterans-affairs/va.gov-cms/issues/1964
Should we close one in favor of another? Or move the above into this epic?
Background
User Story or Problem Statement
The existing phone number paragraph type has a "phone number" field built with plain text, not the phone number field type. It's unclear what was behind that decision.
This presents a number of UX and data quality risk. We don't perform form validation on this, and it's unclear how to enter a phone number. There's help text, but it's less than ideal (users tend not to read help text, especially for common fields like phone numbers because they assume the system will autoformat or validate for them).
Current state
![image](https://user-images.githubusercontent.com/643678/153457253-d2b6b14f-436d-40dd-af1a-e49b6312b5e5.png)Ideal future state with localized input masks
![image](https://user-images.githubusercontent.com/643678/153457447-cafc20b5-7ebd-4af3-95f2-75266ba1d8d9.png) [some background on this approach](https://baymard.com/blog/input-masking-form-field)Affected users and stakeholders
Hypothesis
We believe that a dedicate phone number field with input masking will improve the UX and data quality.
Constraints
(How will these assumptions be validated?)
Acceptance Criteria
Design principles
Veteran-centered
Single source of truth
: Increase reliability and consistency of content on VA.gov by providing a single source of truth.Accessible, plain language
: Provide guardrails and guidelines to ensure content quality.Purposely structured content
: Ensure Content API can deliver content whose meaning matches its structure.Content lifecycle governance
: Produce tools, processes and policies to maintain content quality throughout its lifecycle.Editor-centered
Purpose-driven
: Create an opportunity to involve the editor community in VA’s mission and content strategy goals.Efficient
: Remove distractions and create clear, straightforward paths to get the job done.Approachable
: Offer friendly guidance over authoritative instruction.Consistent
: Reduce user’s mental load by allowing them to fall back on pattern recognition to complete tasks.Empowering
: Provide clear information to help editors make decisions about their work.Possible runbook
CMS Team
Please check the team(s) that will do this work.
CMS Program
Platform CMS Team
Sitewide CMS Team
(leave Sitewide unchecked and check the specific team instead)⭐️ Content ops
⭐️ CMS experience
⭐️ Offices
⭐️ Product support
⭐️ User support