+ Start a Discussion
Steve ChadbournSteve Chadbourn 

Picklist default does not appear to work

I created a picklist field with three values - One, Two and Three. I set One to be the Default.
 
When I display the picklist field on a visualforce page using inputfield, the drop-down list shows --None-- as the initial item.
 
Am I missing something or shouldn't One be the default?
TehNrdTehNrd
I think this does not work as default values are only select upon creation of a record yet I don't believe a Visual Force page as the ability to identify if the record as new or not.
eliotstockeliotstock
I have the same problem. Does anyone else have a definitive answer to this?
avlerikavlerik
VF can easily tell if the record is new or if it already exists by checking {[Object].Id==null} or {[Object].Id!=null}. I use this all the time with 'rendered="..."' and it works just fine.