I have designed a VF page to create a new record in which I am trying to display the value of a pick-list field. I have set a default value for this pick-list field. When trying to create the record using the salesforce native page, the value with which pick-list loads is the one I set as default but when creating the same record using VF page, the pick-list loads with "--None--" as default value.
Can anyone suggest If this is salesforce related bug or Am I doing anything wrong ?
apex:inputField
tag, yes? If so, what is the API version of your VF page? According to the documentation: "Beginning with API version 20.0, an inputField matched to a field with a default value has the default value prepopulated on the Visualforce page."