5

I'm looking at a form on Salesforce that uses a custom object. The object has picklist (drop down) values that are showing an optional --None-- selection. Most of the drop downs have the --None-- selection available, but some do not. Where would I configure a picklist to have (or not have) a --None-- selection?

8

When a picklist field is marked as required (e.g. in the layout), and the picklist field already has a non-null value the "--None--" value is not presented. The non-null value cases are:

  • on a "New" page where the picklist defaults to the first value
  • on an "Edit" page where a value has already been entered

There is no explicit setting on the picklist itself.

| improve this answer | |
  • Interesting. I'm using the REST API, and the --None-- values do not come down. I'll have to manually add them based on your conditions I suppose. – contactmatt Jul 19 '14 at 20:55
0

A less likely, but possible, explanation is that on a VF page, the picklists could be generated from controller properties into apex:selectOptions. Unless the controller explicitly inserts a selectOption with value -- None --, the picklist will not appear with any -- None -- option

| improve this answer | |
0

I follwed this thread and wanted to make my dependent picklist to remove the none value but it didn't work. My picklist field is dependent with opportunity stage. Everytime i click on my picklist field, it is presented to me with None value as well.

I already made the picklist as required in page layout and also defaulted a picklist value.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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