Skip to main content
In my VF page, I want a button to do two things, redirect to a thank you page (done),and update a field on the standardcontroller object . How do I go about this?

 

<apex:page standardController="Quote" >

 

<apex:pageBlock title="Order Confirmation">

 

<apex:form >

 

Thank You

 

<apex:commandButton value="Submit" id="Submit" action="/apex/ThankYou"/>

 

<apex:commandButton action="{!cancel}" value="Go Back" />

 

</apex:form>

 

</apex:pageBlock>

 

</apex:page>
3 Antworten
  1. 14. Okt. 2011, 07:57
    Thanks  Chris, can you perhaps help me with some code to update a field on the opportunity? I am not a developer, but I am trying.....Please supply some insructins on how and where to insert the code.
0/9000