function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JKingJKing 

Question about objects custom field data type

 

Hi

I created a custom object with a data type number.

 

When I input data into this field it adds comas when you review.

I can't use the text type because I only want numbers.

 

Thanks, Just getting going on things, after 23 years of basic top down programming this is fun.

Best Answer chosen by Admin (Salesforce Developers) 
nylonnylon

Hi,

You can add validation rules like 'ISNUMBER()' to text field so that the field accept only numbers.

 

https://login.salesforce.com/help/doc/en/fields_defining_field_validation_rules.htm

All Answers

nylonnylon

Hi,

You can add validation rules like 'ISNUMBER()' to text field so that the field accept only numbers.

 

https://login.salesforce.com/help/doc/en/fields_defining_field_validation_rules.htm

This was selected as the best answer
JKingJKing

 

Thank you for your help.

I changed the data type to text and used a validation rule and it worked.

I also learned about validation rules. Very impressive.