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
Devendra SawantDevendra Sawant 

Zip Code datatype

 

Hi,

 

I am creating one field as ZIp Code. As there is no standard datatype available for zip, what would be the ideal datatype for Zip (Number or Text)?

 

How can i validate zip code?

 

Regards,

Devendra S

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

It should be Text as zip code/postal code may have characters other than integer. And to get the validation please visit :

 

http://www.salesforce.com/community/assets/docs/salesforce_useful_validation_formulas.pdf

 

Find "US Billing Zip Code" for sample.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

All Answers

Ankit AroraAnkit Arora

It should be Text as zip code/postal code may have characters other than integer. And to get the validation please visit :

 

http://www.salesforce.com/community/assets/docs/salesforce_useful_validation_formulas.pdf

 

Find "US Billing Zip Code" for sample.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

This was selected as the best answer
Devendra SawantDevendra Sawant

Hi,

 

Thank you so much..!

 

Cheers,

Devendra S