function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NewbieeNewbiee 

how do i create a search page with company and phone search field

 how do i create a search page with company and phone search field:
 
Vf page:
 

<apex:page tabStyle="Account" Controller="SDFindCustomer" id="FindCustomerPage" sidebar="true" showHeader="true" >

<apex:form id="FindCustomer">
<apex:outputPanel id="msgPanel">
<apex:pageMessages ></apex:pageMessages>
</apex:outputPanel>

<apex:pageBlock >

<apex:pageBlockSection id="NamePanel" columns="2">

<apex:outputLabel value="Company Name" for="cname" > </apex:outputLabel>
<apex:inputtext id="cname" value="{!companyName}" />
<apex:outputLabel value="phone No" for="phone" > </apex:outputLabel>
<apex:inputtext id="phone" value="{!phone}" />

</apex:pageBlockSection>
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!findLeadsAndAccounts}" value="Find" ID="ENTER_BUTTON" />
</apex:pageBlockButtons>
</apex:pageblock>

</apex:form>

<apex:form id="accountListForm">

<apex:pageBlock >

<apex:pageBlockSection id="AccountPanel" >

<apex:outputPanel id="accTablePanel" >
<apex:pageblocktable value="{!accountList}" var="acc">
<apex:column headerValue="id" >{!acc.id}</apex:column>
<apex:column headerValue="Name" >{!acc.Name}</apex:column>
<apex:column headerValue="Phone" >{!acc.phone}</apex:column>
</apex:pageblocktable>
</apex:outputPanel>

</apex:pageBlockSection>
</apex:pageblock>

</apex:form>

</apex:page>

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

Val ValinoVal Valino
This was selected as the best answer
NewbieeNewbiee
Thanks!!! Val...