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
himanshu huske 7himanshu huske 7 

State Abbreviation Logic

Please provide any salesforce standard logic for state abbreviation.
eg: California - CA , Alaska - AL
for User state picklist
 
VinayVinay (Salesforce Developers) 
Hi Himanshu,

You need to configure the two-digit state codes in setup under:
Data Management > State and Country/Territory Picklists > Configure States and Countries and Territories > United States

https://trailblazers.salesforce.com/answers?id=9063A000000eQf7QAE

Thanks,
Vinay Kumar
himanshu huske 7himanshu huske 7
Hi Vinay, 
Thanks for that but I am getting US for United states but not in case of states
what will be the setting for states... it is not rendering state codes in fields.
please help
RituSharmaRituSharma
State code is stored as the value. But on screen it shows the state name only.
himanshu huske 7himanshu huske 7
Thanks for reply Ritu,
But is it possible to render abbreviations instead for stateName
VinayVinay (Salesforce Developers) 
Currently,  this is cannot be achieved through inbuild functionality.  You would need to implement it.

Kindly review below idea link and vote for this feature.

https://trailblazer.salesforce.com/ideaView?id=08730000000kwZ8AAI

You can try something like below.

https://trailblazers.salesforce.com/answers?id=90630000000h3jqAAA

Hope this helps..

Thanks
RituSharmaRituSharma
You can change the name of the each state. But it will be a time consuming activity.

User-added image