Close on submit - Post ID 212583

User 2511943 Photo


Registered User
21 posts

Hi,
Is their a way to make the form auto close after it has been submitted?
Or like 3 - 4 seconds after the ''confirmation message'' ?
Our form is displayed in a popup and we disabled the standard Close button in the corner so people can't close it before they complete the form.

thanks in advance.
User 2073552 Photo


Registered User
1,625 posts

I would set the form to redirect to a new page once submitted. :)
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 2511943 Photo


Registered User
21 posts

But i don't want it to go to a new page once submitted :P.
It currently pops-up in our checkout page so after people submit the form they can complete the transaction.
If i redirect it to the checkout page again, it will reload the form which i want to avoid.
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Should be able to put a java script on the confirmation page to close the window.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2511943 Photo


Registered User
21 posts

Hi eric,

We tried a variety of java script codes at the bottom of the confirmation page like :
parent.$.fn.colorbox.close();
or
<a onclick="parent.$.colorbox.close(); return false;">close</a>
or
parent.jQuery.colorbox.close();
or
$("#cboxClose").click();

etc etc etc...
Tried a variety of methods people on Stackoverflow use but i can't seem to get any of them to work, maybe i just don't know enough about Javascript...
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Coffeecup is setting a non conflict variable with their form pop.
var $fb_pop = jQuery.noConflict();
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2511943 Photo


Registered User
21 posts

i don't exactly understand what u mean by this unfortunatly, is this why my methods didn't work?
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

More then likely. I'll see if I can get some time to make a form and check it out.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2511943 Photo


Registered User
21 posts

That would be awesome.
Thanks.
User 38401 Photo


Senior Advisor
10,951 posts

Well I have to play Devil's Advocate here and ask why in the world you would force a user to fill in your form before they can do anything else. I'll tell you what happens when I go to a site that does it, I hit the close page button and I don't go back. If there's anything that will chase your users away fast, it's forcing them to do something on a website (filling in forms, downloading items, etc.) before they can navigate away from it.

I realize that filling out the form must be a very important part of your activity needs, but give the people the choice to do so rather than forcing the issue. I think you would be surprised to see how many would follow the need if you just added something like this to the top of your form:

PLEASE fill out the form before proceeding as we have no way to help you without this information (reword for your needs of course).

People will respond much more favorably that way than if they do decide they do not want to fill it in right now and cannot navigate away from it with closing the form. This will stop any repeat visitors like myself that would rather look around the site first and then go fill it out. I can guarantee you that anyone like me will not be back to do so.

Just a thought, I'd put the close X back on the form and keep it simple and better for your visitors. :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.