Page 1 of 1

SOLVED Pop Up Submission for Form Builder

Posted: Fri Dec 20, 2013 6:20 am
by CMSmonkey
Hi Everyone,
Is there any easy way to make the submission response when a Form Builder form has been submitted to pop up instead of being inline or on a new page?

I have a sign up form at the bottom of the page, and when someone hits submit, they won't see the response inline unless they scroll all the way back down to where the form was.

Thanks!

Re: Pop Up Submission for Form Builder

Posted: Fri Dec 20, 2013 6:34 am
by CMSmonkey
Nevermind - just threw in the javascript and got the pop up to work.

Re: SOLVED Pop Up Submission for Form Builder

Posted: Fri Dec 20, 2013 11:36 am
by Rolf
Cool
How did you fix it? If you post it here you can help others... ;)

Thanks, Rolf

Re: SOLVED Pop Up Submission for Form Builder

Posted: Fri Dec 20, 2013 12:33 pm
by CMSmonkey
Sure, I'd be delighted. ;D

1. I created a new page called 'thanks' with the following content

Code: Select all

Thanks for signing up!<br /><br />
<form><input type="button" value="Close Window"
onclick="window.close()"></form>

2. I set the page to a blank template (no CSS). In my template I put in the <head>:

Code: Select all

<__script__ type="text/javascript">
<!--
function popitup(url) {
	newwindow=window.open(url,'name','height=300,width=400,scrollbars=no');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->
</__script>
3. In Formbuilder under the Form Submission tab I chose "redirect to a site page" and chose "none".
4. Under the same tab, I put in the Form Submission Javascript text area:

Code: Select all

onclick="return popitup('thanks')"
Hope this helps.