SOLVED Pop Up Submission for Form Builder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

SOLVED Pop Up Submission for Form Builder

Post 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!
Last edited by CMSmonkey on Fri Dec 20, 2013 6:34 am, edited 1 time in total.
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: Pop Up Submission for Form Builder

Post by CMSmonkey »

Nevermind - just threw in the javascript and got the pop up to work.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: SOLVED Pop Up Submission for Form Builder

Post by Rolf »

Cool
How did you fix it? If you post it here you can help others... ;)

Thanks, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: SOLVED Pop Up Submission for Form Builder

Post 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.
Post Reply

Return to “Modules/Add-Ons”