Skip to content

Create UI: Update Postal Code Validation for Firms Registrations  #31208

Closed

Description

@jacqueline-williams-549

Description
Currently, the postal code field in the firm registration form validates as the user is typing (on every keystroke). This can cause a poor user experience, as users may see validation errors before they are finished typing the postal code. Adjust the validation behaviour so that the postal code format validation only occurs when the field loses focus (onBlur) or when the user moves to the next field.

To Do

  • The “Format must be A1A 1A1” error should only trigger when the user tabs or clicks away from the postal code field (onBlur event) if the user has entered an incorrect postal code format.
  • Do not change the existing maximum character validation behavior — it should continue to trigger immediately while typing if the user goes over the limit and display as it currently does.

Acceptance Criteria

  • Given the user has entered an invalid postal code format (e.g., “12345”), the “Format must be A1A 1A1” error message does not appear until the user tabs or clicks away from the postal code field.

Validation Error:
Screenshot 2025-11-07 at 4.14.21 PM.png

Related to ticket #30393

Activity

  1. added
    Entities Team
    on Nov 7, 2025
  2. severinbeauvais commented on Dec 1, 2025

    @severinbeauvais
    Collaborator

    @jacqueline-williams-549 Is this ticket superceded by the other postacl code tickets, and can be closed?

  3. jacqueline-williams-549 commented on Dec 1, 2025

    @jacqueline-williams-549
    Author

    Yes I agree, we dealt with the validation erorr states in ticket #31312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamUX Assurance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions