You need to sign in to do that
Don't have an account?

sites page
Hi
I have created a public sites page , where a person who is outside salesforce system , enters data and clicks save.So, I want to create an other visual force page with a simple thank you message .So, that when a person click this save button it takes him to the thank you page.I would really appreciate any suggestions , ideas , solutions..help me !!!!
thank you
As the the user enters data and clicks of Save and the record is created successfully, which you can find out from the SaveResult object- you can redirect the user to the thankyou page else you can add an error to the object being created which will display the error message in the area where you have used <apex:message>.
In case you want a classy implementation you can avoid the creation of a separate page , by using <div>.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Take a look at the Force Platform Developer Guide Chapter 14 shows a sample application.
Hi Bulent,
I appreciate your reply, it was helpful but
I am using an standard controller, how can link page now...
Hi Ispita,
I need to redirect them to the thank you page , that is my question ..of how to do that since, I am using standar controller.
I would appreciate your reply.
thank you
you need to extend the standard controller to have your own save action. in this actin you can save the record via the standard controller and redirect to your own custom page. If you just use the standard controller save action will take user to the standard detail page after save
For to navigate the user to a new page when he clicks on the Save button requires you to use Controller extension that extends your standard controller.
for ex: I am using OpportunityLineItem standard controller and then extending it with extension.
VF Page:
Controller Extension:
And finally you also need to add the VF pages that you are exposing through Sites to the "Guest" Profile of the sites.
Also make sure that Guest profile has permissions set on the objects that you are exposing through the sites.
Hope this helps!