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
aaslandjaaslandj 

Return to SF page from external page

I have a button with an s-control on the contact page that opens a page on an external site. It does not open a new windows, it stays in the Iframe of sales force.  There's a form on it and after you submit the page needs to go back to the contact details view.  How do I accomplish this?
Greg HGreg H
Make sure you pass the contact Id to your external form.  After you run through the information from the form on your external site you should simply redirect the parent window/frame to your contact detail page (https://na2.salesforce.com/{!Contact.Id}).  If you don't redirect the parent then the contact detail page will load inside the current frame.  You didn't indicate the language of your form submission so here's an example in javascript: "parent.window.location.href = 'https://na1.salesforce.com/003XContactIdHereX';".  Replace the "003XContactIdHereX" with the Id of the contact from which the external form was accessed.
-greg