You need to sign in to do that
Don't have an account?

display records picklist values wise in visualforce page
requirement :
my visualforce contain one selectlist and one textbox and one search button
selectlist values are contact firstname,lastname,birthday,phone,email
if i select email in a selectlist and enter email address in textbox and click search button
when i click search button related contact wil display in a pageblock
Try that
<apex:page standardController="Contact" extensions="visualforcepage_picklist" standardStylesheets="true"> <apex:sectionHeader title="Contact Edit" subtitle="{!Contact.Name}" help="/help/doc/user_ed.jsp?loc=help"> </apex:sectionHeader> <apex:form > <apex:pageBlock title="Contact Edit" mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value=" Save "> </apex:commandButton> <apex:commandButton action="{!cancel}" value="Cancel"></apex:commandButton> </apex:pageBlockButtons> <apex:pageBlockSection title="General Information" columns="2"> <apex:inputField value="{!Contact.FirstName}"></apex:inputField> <apex:inputField value="{!Contact.LastName}"></apex:inputField> <apex:inputField value="{!Contact.Department}"></apex:inputField> <apex:inputField value="{!Contact.Phone}"></apex:inputField> <apex:inputField value="{!Contact.Email}"></apex:inputField> </apex:pageBlockSection> <apex:pageBlockSection columns="1" showHeader="false"> <apex:pageBlockSectionItem > <apex:outputLabel value="Account Name" for="accts"></apex:outputLabel> <apex:selectList id="accts" value="{!Contact.AccountId}" size="1" title="Account"> <apex:selectOptions value="{!accts}"></apex:selectOptions> </apex:selectList> </apex:pageBlockSectionItem> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
Controller