Skip to content

Restrict phone number field to the telephone input #192

@sowmi20189

Description

@sowmi20189

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions