Skip to content

Fix phone number input field to restrict letters and accept only numbers and allowed symbols #22

@akshay0611

Description

@akshay0611

The phone number input field was previously accepting letters, which could lead to invalid data being submitted. To resolve this, the input field has been updated with the following changes:

  • Pattern validation has been added to allow only numbers and the symbols + and -.
    - inputmode="numeric" is used to display the numeric keyboard on mobile devices.
  • onkeypress event has been added to restrict keypress input to numbers and the allowed symbols.``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions