How do I close the form after submission?

Last updated Nov 07 2018

There are some cases where you want to close your form automatically once submitted and we will guide you how to do it.

 

Option 1:

In the Form Settings->On Submit->Redirect URL set this value :

javascript:window.top.close();

 

option 2, if you are using the lightbox publish mode then :

You can create a new form that will close automatically when it's opened and set the submitted form to redirect to that new form url on submit.

 How to do this :

Create a new form with only the HTML control from the widgets section on it. 

  • Edit the HTML control's "HTML/JS" setting and put the following in there (click apply code when done):
     <script>
    window.top.close();  
    //if you are using the light box option, use the code sample below:
    var url = "url of a web page within your domain";
    window.parent.closeFTlightbox(url);
    </script>
  • Note that form's url.
  • Create your data capture form and set the "Redirect to URL" setting of it to the form created above.

 

option 3, if you are using feedback publish mode then

  • When using FormTitan feedback publish mode you can automatically close the form by doing the following
    create a new page on your own domain which will include the following script
    <script>
    if(window.parent && window.parent.closeFTfeedback) {
    window.parent.closeFTfeedback();
    }
    </script>
  • In your formtitan form, make sure that the redirect url goes to the new page created on step 1.

 

That's all you have to do!

 

CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.