Create Number Type Site Column using CSOM in SharePoint Programmatically

In this post i describe you to Create Number Type Site Column using CSOM as standard number field where the user can set positive and negative numbers, and where the number of decimals is generated automatically.You need to Create Boolean type Site column. follow my post Create Boolean Type Site Column using CSOM.


standard number field

If you want to declare a number field that only allows positive numbers, you will have to declare it this way

if you want to restrict the range of values that can be entered by the user, you have to declare the number field the following way

Also you can define the number of decimals as

create a percentage field by using the Number type. In that case you have to add an addition attribute Percentage, which you have to set to true


Leave a Reply

Your email address will not be published. Required fields are marked *