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

How do I send user to Opportunity page after an Scontrol is done?

I'm using an Scontrol as a WIL, displayed in a window with sidebar. In this configuration, my control is actually displayed inside of an html IFRAME, which is fine.

When my Scontrol finishes what it needs to do, I'd like to send the user automatically to an Opportunity page. However, if my html code uses a javascript call to go to, the new Opportunity page shows up inside the little frame, instead of being displayed in the full IE window. I tried the "frontdoor" technique (as described elsewhere in this forum), but that got the same results.

From inside my Scontrol, how can I send the user to an Opportunity page without being stuck inside of the Scontrol IFRAME?


Good question. Have you tried to get a handle to the top window, and set the location from there? Something like parent.location?

Thanks for getting me on track. The statement:

    self.parent.location.href="" + "{!Opportunity_Account_ID}";

did the trick.


Do you know if you can update something, like a checkbox, on the calling page?