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
Esther OnemaEsther Onema 

How to launch another visualforce page upon the click of a button

Hello,
I am working on a visualforce page that asks the viewer to enter an email adress they are searching for within the salesforce system. Upon clicking a button, I would like the viewer to see a list of user emails that direcly match/simliar to the one entered on the previous page. How do I launch a new visualforce page upon the click of a button? And how do I create the second page as described prior?

Here is what I have so far.
<apex:page standardController="User">
    
    <apex:form > 
        <apex:pageBlock title="User email search">
        
        Please enter the email address of the user you are looking for: <p/>
        
        <apex:inputField value="{!user.email}"/> <p/>
        <apex:commandButton action="{!save}" value="Submit"/>
        
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
Laraib_JafriLaraib_Jafri
You will need to use a custom Apex Controller for that functionality. 
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm