You need to sign in to do that
Don't have an account?
Simran Suri
Auto populate custom picklist based on value from another custom picklist on Standard Contact Page (Create/Edit)
Hi,
I have two custom picklist fields on Contact object - Country and Country Code. Both fields have 250 picklist values each. I want to auto-populate the country code as soon as the value of country is filled by the user while creating/editing a Contact. Can anyone please guide me? I am quite new to salesforce development.
Thanks for your help !
I have two custom picklist fields on Contact object - Country and Country Code. Both fields have 250 picklist values each. I want to auto-populate the country code as soon as the value of country is filled by the user while creating/editing a Contact. Can anyone please guide me? I am quite new to salesforce development.
Thanks for your help !
You also need to set Country Code as required on Contact page layout to remove default picklist value '--None--'
See also:
https://help.salesforce.com/HTViewHelpDoc?id=fields_defining_field_dependencies.htm&language=en
https://help.salesforce.com/apex/HTViewSolution?id=000221030&language=en_US
All Answers
You also need to set Country Code as required on Contact page layout to remove default picklist value '--None--'
See also:
https://help.salesforce.com/HTViewHelpDoc?id=fields_defining_field_dependencies.htm&language=en
https://help.salesforce.com/apex/HTViewSolution?id=000221030&language=en_US
Yes, For now, I have done it in this way in my sandbox, but, I am unable to default the dependent picklist value.
PS: I cannot make the fields Country & Country Code as 'Required'. Is there any other alternative, so that I can default the country code values as soon as the country is selected without making these fields as mandatory?
Using a formula field for Country Code could be another way.
For examle, However, formula field is read-only and cannot be showed in the edit mode.
Yes, you are right for the first case. I don't have to make the Country field as required. But, I can make the Country code mandatory on the page layout in order to default it. It worked! Thanks a lot !
However, formula field will not suit my requirement since it cannot hold large amount of picklist values and cannot be shown in Edit Mode.