getting picklist field options in list in apex class
VF page
<div class="slds-form-element slds-form-element_horizontal">
<label class="slds-form-element__label" for="">Current Institution <span class="reg">*</span></label>
<div class="slds-form-element__control">
<apex:selectList value="{!currentInstitution}" size="1" label="" styleClass="slds-input">
<apex:selectOptions value="{!PickListValuesIntoList}"/>
</apex:selectList>
<!--<apex:inputField value="{!UserContact.Country_of_Institution__c}" styleClass="slds-input" id="UserContact__Country_of_Institution__c" ignoreEditPermissionForRendering="true"/>-->
</div>
</div>
Apex Controller
public List<SelectOption> getPickListValuesIntoList(){
List<SelectOption> selectOptions = new List<SelectOption>();
Schema.DescribeFieldResult fieldResult = Contact.Country_of_Institution__c.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for( Schema.PicklistEntry pickListVal : ple){
selectOptions.add(new SelectOption(pickListVal.getLabel(), pickListVal.getLabel()));
}
return selectOptions;
}