+ Start a Discussion
Avinash RaviAvinash Ravi 

VF Page embedded into My site as iFrame

Hi All,

I have a VF form that I've embedded into my wordpress site. When someone fills it out and hits submit, the 'thank you' redirect url seems to open inside the same frame as the form (in the same parent page). Is there someway I can modify this to redirect from the form buttons to open into a new parent window?

Fill out the form or hit cancel in the below link and you'll see what I mean..

http://prayag.thezrox.in/about/become-a-superhero

Please help!
Best Answer chosen by Avinash Ravi
bob_buzzardbob_buzzard
You need to set the window.location to the thank you URL - you can't do this as part of a postback request, instead you have to do this client side using JavaScript. There's an example of this on my blog - its for Visualforce pages embedded in standard Salesforce pages, but should be straightforward to adapt:

http://bobbuzzard.blogspot.co.uk/2011/05/refreshing-record-detail-from-embedded.html