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
RetoReto 

Populating a Contact Edit Page with Default Values from an Account

I want to populate a picklist on the contact edit page with a picklist value from the account.

Example:

* I have an account picklist "Account Class" with values A,B,C and I have a contact picklist also called "Account Class" which also has the values A,B,C.
* Now, when creating a new contact, I want the picklist on the contact edit page to be populated with the value of the picklist of the associated account.

I am able to do this for text fields following the instructions I found in the Salesforce_platform_cookbook.pdf (page 124). However I don't no how to do it for picklist fields.

Can somebody help? Your help would be apreciated.

Reto
Greg HGreg H
I am not terribly familiar with the cookbook but if you are passing parameters in the URL to populate your text fields than you can do the exact same thing for picklist fields. It works the same way.  If you are not passing the parameters via the URL by overriding the "New" button then you can learn more by reading a post I did a while back: http://www.interactiveties.com/b_pass_vars_url.php
-greg