You need to sign in to do that
Don't have an account?

state and country enable
Hi,
can you give me any idea how to know State and country picklist values are enable or not in ORG through coding not UI.
i need to write validation on Address fields(country,state on Lead) in trigger.if it is text field my validations working fine.
But the org may be enable state and country picklist values its not working,i filled state and country picklist values also but it shows validations.
once state and country picklist values are enabled in ORG,the fields like Statecode and countrycode fields are appear.
we have to developed an app so i need to write my validation on both scenarios i.e,state and country enable or disable
can any one help us the best approach...
thanks
can you give me any idea how to know State and country picklist values are enable or not in ORG through coding not UI.
i need to write validation on Address fields(country,state on Lead) in trigger.if it is text field my validations working fine.
But the org may be enable state and country picklist values its not working,i filled state and country picklist values also but it shows validations.
once state and country picklist values are enabled in ORG,the fields like Statecode and countrycode fields are appear.
we have to developed an app so i need to write my validation on both scenarios i.e,state and country enable or disable
can any one help us the best approach...
thanks
All Answers