Close on submit - Post ID 212639

User 2511943 Photo


Registered User
21 posts

Hi Jo Ann,

The form is displayed at the last page of our checkout system and needs to be filled
to book Hotel rooms for our customers so we need their details and preferences.
If they don't fill it, we can't book their rooms.

The top op my form starts with this line:

Would you please be so kind to fill in the details and preferences of you and your companions in the form below.
User 187934 Photo


Senior Advisor
20,271 posts

Is this what your looking for?:)
http://www.ericrohloff.com/coffeecup/cc … /popclose/
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 is perfect Eric!
User 187934 Photo


Senior Advisor
20,271 posts

All I did was paste the code below to the head area of my "Redirect to custom HTML page" on the confirmation tab built in to the form builder. Adjust the myformname to your form. Adjust the 5000 to the needed close delay. :)
<script>
window.setTimeout(function() {
parent.$fb_pop.colorbox.close();
}, 5000);

</script>
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,
I didn't even have to put the
<script src="./myformname/common/libs_js/jquery-1.4.4.min.js"></script>
I worked with just the bottom script part.
So as it turns out, i can't put javascrypt in the ''confirmation message" option. obviously.
I copied the text i was displaying in the confirmation message to the Custom HTML page and it worked like a charm.

This is perfect, thanks for your help!

User 187934 Photo


Senior Advisor
20,271 posts

I didn't even try it with out the Jquery but your correct. Now you can see how CC has the custom Jquery variable. Have fun!
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

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.