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

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: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:pageBlockButtons location="bottom">
<apex:commandButton action="{!findLeadsAndAccounts}" value="Find" ID="ENTER_BUTTON" />


<apex:form id="accountListForm">

<apex:pageBlock >

<apex:pageBlockSection id="AccountPanel" >

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




Best Answer chosen by Admin (Salesforce Developers) 

All Answers

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