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

Restrict phone number field to the telephone input #192

Open
4 tasks
sowmi20189 opened this issue Jan 24, 2022 · 3 comments
Open
4 tasks

Restrict phone number field to the telephone input #192

sowmi20189 opened this issue Jan 24, 2022 · 3 comments
Assignees
Labels

Comments

@sowmi20189
Copy link
Collaborator

Summary

As as admin, I want the phone number field to be restricted to only 10 digits on the pages wherever applicable.

Things to Consider

Currently, the field takes alphabets and numbers up to 'n' digits.

Criteria for Completion

  • When the user tries to enter the digits in the phone number field and if he/she enters more than 10 digits, the system should throw a warning message below the field saying "Please enter a valid phone number".
  • When the user tries to enter the digits in the phone number field and if he/she enters less than 10 digits, the system should throw a warning message below the field saying "Please enter a valid phone number".
  • When the user tries to enter the digits in the phone number field and if he/she enters characters/special symbols, the system should throw a warning message below the field saying "Please enter a valid phone number".
  • When the user leaves the phone number field blank, throw a warning message saying "Phone number can't be blank".

Refer the below screenshot - Add phone number can't be blank

Phone number can't be blank

Phone number warning message:
Phone number warning message

@JelenaD1
Copy link
Contributor

JelenaD1 commented Feb 5, 2022

I'll tackle this one. @garettarrowood

@JelenaD1
Copy link
Contributor

JelenaD1 commented Feb 5, 2022

Hey @garettarrowood, me and @RobGentile17 are pairing on this on rn. He is just cloning the repo. Is there any specific format we want to allow for phone numbers or just plane numbers without - in between?

@JelenaD1
Copy link
Contributor

JelenaD1 commented Feb 5, 2022

@RudeChowder joined the forces on this one too:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants