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
Abhirams470Abhirams470 

remove forst 3 characters from state

Hi

I had state custom field and the values are 

State__c   -  US-MA, US-NJ, IN-AP, IN-KE

in that field  states(MA,NJ,AP,KE)  are displaying with counry abbrivation.how to delete county abbrevations(US-,US-, IN-,IN-from state)

out put shoulsdbe MA,NJ,AP,KE

Appreciate your help

Thanks,

NishBNishB
Hi,
     Are you displaying the values in a VF page or on a standard page?
Abhirams470Abhirams470
Hi Nish,

this is for standard page, getting data from web using webservice.web sending like US-MA, but it should display in satandrd page MA only.need to remove all countries abbrivation from State.

l.State__c = Contact_Info.State_Province;

Thanks,
Abhi
NishBNishB
If the data push is a one time push or not very frequent then you can manually edit the picklist field to remove the countries
Abhirams470Abhirams470
Hey Nish,

Thanks a lot for your quick responce, i solved that problem