A Number field can be used where you want to take numeric input from the user, such as phone number, zip code, etc.
You can learn more about how you can add this field to a content type in this article.
Configure more options as per your need
There are various properties of the Number field that can be configured additionally., which are:
1. Default:
-
- Choose the type of number that you want to allow from the options - Integer, Double, Long, or Float.
2. Validations:
-
- Make it a required field.
- Make it a private field.
- Add minimum value.
- Add maximum value.
3. More:
-
- Add a default value to the field.
- Add some help text to show information in a tooltip.
- Add placeholder value.