You need to sign in to do that
Don't have an account?
@rajeshdulhai
How to give action to custom button to go on new visualforce page
i have 2 visualforce pages . one is for displaying records and another for creating records . On displaying records pages i have a button named creating new record . onclick of this button i want to redirect this page to creating records page
please help me in code for apex controller
thanks in advance
Hi,
You have to use PageReference function to redirect page to another page.
Below is the sample example to redirect page to another page on click of command button.
Visualforce Page:
Apex Class:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
My Blog:- http://mrjavascript.blogspot.in/