How to add redirect link after form submission

*Note: This tutorial for FLATPACK version older than 4.0

If you are using FLATPACK version 4.0 or newer, you can add a redirect link directly from the builder by switching the builder to “Details” mode, after that click on the form, then open “Form Builder” tab from the left sidebar and input your redirect link in the link field.

 

To redirect the page to a specific link after form submission please follow these steps:

  1. Get the form name by opening the “source” of the section from the builder (you can find it at the first line):
    link1Capture
  2. After exporting the page, open the file “js-files/custom1.js” and find the section related to form’s name (in our example: corporate).
  3. find this line of code inside the section:
    $.fancybox(“#hidden_pix_2″);
    *Note: the number 2 will be different according to form’s number.
  4. Replace the previous line of code with this line:
    window.location.href = "http://pixfort.com";
    *Replace with the URL you want to redirect the user to it after successfully submitting the form.

12 Comments

    1. pixfort

      Hello,

      To add redirect link after form submission with mailchimp, open the file “js-files/custom2.js” and add this line:
      window.location.href = “http://pixfort.com”;
      After this line (line 16):
      if (resp.result === ‘success’) {

      Kind regards,

  1. marcilio

    Just did this but is not working. When I put an email address there, I just receive a message that comes from my mailchimp saying that I need to confirm my email. But this message is sent in the same page and I am not being redirect to the page that I set….

    1. pixfort

      Hello,

      You can change the submission message from the file “/pix_mail/new_contact.php”
      line 179 if you are using the custom email subscriptions.
      line 216 if you are using MailChimp.

      If you have any other questions we will be happy to help you.

      Kind regards,

        1. pixfort

          Hello,

          The code was changed in version 5.0 of FLATPACK, you can now edit all messages from the file “/pix_mail/messages.php”.

          Kind regards,

    1. pixfort

      Hello,

      You can now edit all messages from the file “/pix_mail/messages.php”.
      To edit the confirmation popup, switch the builder to the “Content” mode then click on the submit button of the form, then the popup will open and you will be able to edit normally via the builder.
      note: you should close the popup after you finish editing it (by switching to the “content” mode then click on the close button).

      Kind regards,

  2. Yan

    Hi!
    When I do export from the builder, check the job feedback form. In the form I or leave the field empty or fill a name and phone number does not work messages from messages.php file

    $ Lang = array (
    // English is the default language, you can change the langugae from the config.php file
    ‘EN’ => array (
    ‘Check_email’ => ‘Please enter a valid email!’,
    ‘Captcha’ => ‘Please check the Captcha!’,
    ‘Php_error’ => ‘Could not send mail! Please check your PHP mail configuration. ‘,
    ‘Success’ => ‘Hi, Thank you for your email’,
    ‘Subscription’ => ‘Thank you for your Subscription.’,
    ‘Email_exists’ => ‘Email Already Exists’,
    )
    );
    ?>

    I do not see the Please enter a valid email
    I do not see Hi, Thank you for your email
    I do not see a message about successful sending forms: ((

    Why do not these messages?

    1. pixfort

      Hello,

      Could you please send us your website information (URL and FTP) via the contact form in our profile to check the issue:
      href=”http://themeforest.net/user/pixfort#contact

      Kind regards,

Leave A Comment?