Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create a custom picklist field with different value and name. Eg on the page layout Orange,Banana value saved in db 0,1. Thanks

share|improve this question
up vote 3 down vote accepted

No, it's not.

You need a second field to achieve this functionality, probably a formula field but you could also have a text / number field which is updated via workflow.

The formula would look something like this:

Case (
    'Orange', 0
    'Banana', 1,
share|improve this answer
Thanks. Your solution looks promising will implement it and get back to you if i face any problem. – Shanker Paudel Sep 1 '14 at 13:50

You would need to use VF to do this as you can't do this on the standard page. You can take a look at the documentation here.

VF Code

 <apex:selectList value="{!myChoice}">
      <apex:selectOptions value="{!choices}"/>

Controller Code

public Integer myChoice {get;set;}

public List<SelectOption> getChoices() {
    List<SelectOption> choices = new List<SelectOption>();
    options.add(new SelectOption(0,'Orange'));
    options.add(new SelectOption(1,'Banana'));
    options.add(new SelectOption(2,'Some Other Fruit'));
    return choices;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.