You need to sign in to do that
Don't have an account?
harsha vardhan vasa
hi i am doing a simple code in vf page where i gather customer information like name,contact number etc, i want to know how to redirect to some url on click of submit button and save as well.PFB snippet
<apex:page standardcontroller="comingpeople__c" sidebar="false" showHeader="false">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="OUTING PLAN">
<apex:inputField value="{!comingpeople__c.Employee_name__c}" /><br/>
<apex:inputField value="{!comingpeople__c.GID__c}" /><br/>
<apex:inputField value="{!comingpeople__c.coming_or_not__c}" /><br/>
<apex:inputField value="{!comingpeople__c.Transportation__c}" /><br/>
<apex:inputField value="{!comingpeople__c.Venue__c}" /><br/>
</apex:pageBlockSection>
<apex:commandButton value="save" action="{!save}" />
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="OUTING PLAN">
<apex:inputField value="{!comingpeople__c.Employee_name__c}" /><br/>
<apex:inputField value="{!comingpeople__c.GID__c}" /><br/>
<apex:inputField value="{!comingpeople__c.coming_or_not__c}" /><br/>
<apex:inputField value="{!comingpeople__c.Transportation__c}" /><br/>
<apex:inputField value="{!comingpeople__c.Venue__c}" /><br/>
</apex:pageBlockSection>
<apex:commandButton value="save" action="{!save}" />
</apex:pageBlock>
</apex:form>
</apex:page>
Please write an extension like below and try you will be able to redirect to any Page or URL.
VisualForce Page.
Apex Extension:
let me know if this helps you !!
Thanks
Lokesh
All Answers
Please write an extension like below and try you will be able to redirect to any Page or URL.
VisualForce Page.
Apex Extension:
let me know if this helps you !!
Thanks
Lokesh
this.controller = controller;
}////// and this time i am getting error as function already defined. its not working :(
Happy to Help You
Lokesh