+ Start a Discussion
Apple88Apple88 

Picklist

When creating a picklist to a field, Force.com add a picklist item "--None--" automatically.  In some situations, we may not want to provide the "None" option for user to select.  Is it possible to remove the "None" option from the picklist?

Force2b_MikeForce2b_Mike

First, if the user selects '-None-' (or leaves that as the default value), the field value is set to '', not '-None-'.

 

You can define a default value for your picklist so it starts with something other than '-None-', though I think '-None-' is still an option that can be selected if the field is not marked as required.

 

If you make the field required, then '-None-' is not accepted as a valid value and probably doesn't appear in the list.

 

I hope this helps.

 

Mike