If you have an actual daughter window (full window with close button) rather than the iPad-friendly overlay format, then you need to do the following:
In the form setup dialog for the page that is appearing in the daughter window, click on the Extended button and click New in the sub-dialog. Add the following pair:
- Name: onsubmit
- Value: window.opener.location.href=‘thanks.html’; window.close()
That should work. If you use the iPad-friendly format, then you don’t need to do anything – just make sure your form submission points to the thanks page.
If you’re using the PHP Feedback Form Action, then you may have an issue with the daughter window technique, because it will always redirect to the thanks page even if an error is detected. I’m not sure what the work-around would be. Ditto if you’re using the iPad-friendly (overlay) technique, because the back button from the error page will take you to a page without the form (the default state of the page when it loads).
Walter
On Sep 17, 2012, at 4:05 PM, Aaron Corey wrote:
This question pertains to the SNW that can be accessed by clicking the “Get Started Form” link in the middle of the paragraph.
Is there a way for me to get the “pop-up” window to close when the Submit button is clicked?
Currently, the Thank You/Success page opens in the “pop-up” window. I would much prefer to have the “pop-up” close upon Submittal and the Thank You/Success page open in the original, full window.
I tried applying “javascript:window.close( )” to the text in the Submit button, but I’m guessing this button can only perform a single function since this did not do the trick.
Any advice appreciated…
Thanks,
Aaron
www.appliedcognistics.com/i’m_ready.php
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options