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

Field is always adding a + to the front of the number #10

Open
wesgood opened this issue Aug 7, 2024 · 0 comments
Open

Field is always adding a + to the front of the number #10

wesgood opened this issue Aug 7, 2024 · 0 comments
Assignees

Comments

@wesgood
Copy link

wesgood commented Aug 7, 2024

Thank you for putting together this helpful Nova tool.

My project allows users to save phone numbers in the full 10 digit format of Canada and USA along with the 5 and 6 digit numbers for helplines and custom services. I was able to support both by using the helpful custom format tool.

->withCustomFormats('#####', '######')

I have run into a problem where saving the 5 and 6 digit numbers always inserts a + character at the beginning of the number. When the resource is edited in the future, this character is detected as a full 10 digit number and the format breaks. I would like to prevent the + character from being added to the custom formats.

Possible solutions

  • option flag to choose whether the + character should be inserted automatically
  • match the + character to the custom format
@JamesHemery JamesHemery self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants