Here are the requirement details :
Create picklist field on Credit Score Category Lead having values (Good / Acceptable / Bad).
Create a another number field called Credit Score on Lead. The value for this field will depend on the Credit Score Category field as follows
· Credit Score category is Good then Credit Score should be set to 850.
· Credit score category is Acceptable then Credit Score should be set to 720.
· Credit score category is Bad then Credit Score should be set to 500.
Create a trigger that will encompass the above logic to set the value for the Credit Score field.
The Credit Score values should be configurable for each Credit Score category and should allow the user to modify the same without performing any code changes to the above mentioned logic. (Use custom setting).
Welcomes any sample trigger code for the same, & steps for custom setting.