How to force a number field to keep zeros at the start?
-
19-01-2021 - |
Question
I would like to use a number field to add phone number to a Sharepoint list. But if the phone number starts with 0, it is automaticly removed by default. Is there any way to keep it? I didn't want to use text field to ensure users not enter non number characters.
Solution
I tried adding an out-of-the-box 'telephone number' field, Primary Phone
, to a list, but it is a text field.
So, I found this other post which deals with your issue. It seems there is no very simple solution to this, as Sharepoint automatically disregards a 0
in a number field.
I've added a picture - I'd already created this field, so I think it shows with brackets () instead of square brackets []
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange