-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add server-side validation on ext field in phone paragraph in Drupal #17863
Comments
@laflannery FYI. I removed your question about "Can we add character counters?" and added the specific guidance for updating them in Drupal |
@Agile6MSkinner to work with @omahane to refine and point when he gets back |
For traceability the two tickets that were splintered off of this ticket are: |
@davidmpickett See AC#2. We need copy for the error message before moving to "Ready." |
Given that the field already has help text saying "Enter only numbers" this error message feels redundant, but tried to make it a little more explicit "Enter an extension that contains only numeric characters (0-9)" |
@davidmpickett To make it less redundant we could say something like "You have entered non-numeric characters. Please check your entry and try again." |
This ticket is technically ready but flags have been thrown on comments in #17861 that we want to consider order of operations for migration in context for this work. @Agile6MSkinner to close loop. |
@jilladams @Agile6MSkinner I think this is the ticket mentioned in planning today to have me pull part of it out into another ticket, but since this is a Facilities ticket that I'm unfamiliar with, I think it was supposed to target Michael to do this? Or maybe I wrote down the wrong ticket number? |
@FranECross it was #18736. I'll leave a note there re: the change. |
@laflannery Should we update this ticket to allow commas in the extension field based on your recent discovery? |
From UX sync:
There might be a Change Management advantage to doing it now, vs. later. We need to decide before we take on this ticket. |
We're making the assumption that commas are how we want to handle the multiple extensions or phone tree options thing, and that doesn't feel thought through to me. We risk watering down the benefit that this work was meant to deliver, which is hardening, streamlining and standardizing how phone numbers are entered and displayed. My vote is that we spin off those questions and perhaps combine them with the international/vanity and other various phone number enhancement stories that are out there for future consideration. |
@Agile6MSkinner Flagging that from this slack thread, it'd be nice to prioritize adding this validation once CM tasks are done for Phone #s. However: there are open questions about ACs and use of commas, etc here that need to be resolved with a product call in order to make it actionable. |
@Agile6MSkinner I reviewed this issue with @laflannery and I believe this issue will need accessibility review. |
BLOCKED: We need to:
|
[2025-01-22] Blocked on tasks in this comment
[2025-01-08] We are not allowing extra extensions, so the ACs are accurate as written.
[2024-10-10] We need to make a call on comma separated multiple extensions allowed or not, and factor that into ACs on this ticket (& make follow on tix if so)
[2024-09-18]: Should block on FE work, and Change Management with editors before we do this.
Description
The Extension number field in the phone paragraph type in Drupal should not allow non-numerical characters to be saved. We should add server-side validation that prevents the editor from saving content such as "ext. 123" and only allows "123" for example.
Acceptance Criteria
QA
The text was updated successfully, but these errors were encountered: