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
RichardR1RichardR1 

Redirecting from Save button in Visualforce

Is it possible to do this without a controller extension? I'm not very good at test class and it's difficult for me to deploy any apex classes to production because I'm not really a developer yet. Is it possible to do a redirect using only Visualforce development?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Richard,

>> https://salesforce.stackexchange.com/questions/165499/how-to-redirect-from-one-visualforce-page-to-another#:~:text=1.,controller%20to%20return%20a%20PageReference. 

One possibility I could think of is to use window.open in script tag that you can try checking, above is a link to an example for the same.

Below is a code snippet you can change as per your use case from the above link:
<apex:page >
<script type="text/javascript">
function submitVF() {
window.open('/apex/FindPage?test@sf.com');
}
</script>
    <apex:form >
           <div class='form-group'>
           Enter Phone number here:
               <input class="form-control" type="text" id="phone" placeholder="Phone" />
           </div>
        <apex:commandButton styleClass="btn btn-default" value="Submit" id="findPhone" onclick="submitVF()"/>    
    </apex:form>
</apex:page>

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Millar DakkimMillar Dakkim
Hello!
 If you are someone who is new to Tableau and learning it, yes it would be a good idea to take the cert. Why? Because it would give you a goal, a reference point that you would be working towards. Check it out here: аrtofvisualization (https://www.artofvisualization.com/blog/9-definitive-reasons-become-tableau-certified)