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

Populate one field based on value of other field

Hi All,


I have two field on account.

One is look up to the user and other is a custom field.


Requirement is something like this:

When i select user A then immediately Custom field should be populated with His manager name.

This requirement is same as below.

Custom field on account can be picklist also and value withing this can come from say a custom field from user






The simplest way to display the manager on Account would be a formula field. Try this:


User_Lookup__r.Manager.FirstName+' '+User_Lookup__r.Manager.LastName


Where User_Lookup__c is the name of your lookup to User. This assumes you are tracking the manager in the standard Manager field on User. If it's a custom field, you would need to reference that instead.


If you need the custom field to be a picklist, you will need a trigger.