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
WesGrayWesGray 

Auto-populate a field when user selects a pick list

I have a custom object, Employee, and on the New Employee entry tab I would like it to auto populate a field when the user selects from a picklist.  For example, if the user selects an employee type of 'Programmer' from the picklist I would like the Salary field to auto-populate with 50,000.  Salary need to be a real field too, so that the user can replace 50,000 with some other figure.  This doesn't seem to be possible with the standard Salesforce setup (please correct me if I'm wrong), so I'm wondering if it's possible to do it with an S-control?  If so does anyone have an S-control which does this that I can look at?

jyotijyoti
Maybe not what you are looking for, but have you considered using a simple workflow to update the salary value upon creation (so that the user can override later if required)?