+ Start a Discussion
SFDC n12SFDC n12 

VF Picklist help

Hi,

I want to display a picklist field in my vf page followed by continue and cancel button , Please help me with a sample code


Thanks in Advance
Best Answer chosen by SFDC n12
Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
<apex:inputField value="{!Custom_Field}"/>
If you declare the field as picklist in the object.
else
<apex:selectList>
<apex:selectOptions value="">
</apex:selectOptions>
</apex:selectList>
we can make this as dynamic using controller.

mark it as best answer if it works

All Answers

RishavRishav
Hi, 
Are you trying to building wizard app. I mean are you trying to go through multiple pages in step by step. if yes then you need to build the wizard.
if yes then use this link 
http://developer.force.com/cookbook/recipe/creating-a-wizard-with-visualforce-pages

Thanks 
Rishav
SFDC n12SFDC n12
no

i just want to display a picklist field in my vf page with its values with the continue and cancel button , thats it



Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
<apex:inputField value="{!Custom_Field}"/>
If you declare the field as picklist in the object.
else
<apex:selectList>
<apex:selectOptions value="">
</apex:selectOptions>
</apex:selectList>
we can make this as dynamic using controller.

mark it as best answer if it works
This was selected as the best answer