• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Redirect form plugin

  • Views Views: 33,289
  • Last updated Last updated:

Navigation

         Form Article Plugin Tutorial
      Autofill form plugin
      Clone form plugin
      Comment form plugin
      Email form plugin
      EXIF form plugin
      FTP form plugin
      J2store form plugin
      Kunena form plugin
      Limit form plugin
      Logs form plugin
      Mailchimp form plugin
      Paginate form plugin
      Paypal form plugin
      PHP form plugin
      Pingdotfm form plugin
      Receipt form plugin
      Redirect form plugin
      REST form plugin
      Slack form plugin (+)
      SMS form plugin
      Twitter form plugin
      Upsert form plugin
      VBforum form plugin
      Create a Search Form
      Accordion Form Groups
  • Introduction​

    The redirect plug-in allows you to decide where the browser should be redirected to at the end of the form submission.

    If no redirect plug-in is entered then the form will automatically redirect itself to the previous page.

    The redirect plug-in is always the form's last plug-in to be run, regardless of its order in the form's plugins section

    Options​


    redirect-options.png


    Module/Content plug-in redirect options​

    Options :
    • Jump page - The URL to redirect to once the form has successfully been submitted. The jump page can use Placeholders. Of particular relavance are the Placeholders:
      Code:
      {where_i_came_from}
      which will redirect the browser to the page loaded prior to the form.
      Code:
      {$_SERVER->REQUEST_URI}
      will redirect to the same page
    • Append jump url with data - If yes selected the the form's data is appended to the jump page url
    • Submission message - Text to display. Use Placeholders to display data collected by the form.
      • If your jump page option is left empty then this text is shown on its own page, in a popup message.
      • If your jump page points to a URL on your site then the thanks message appears as a system message.
      • If your jump page points to a URL outside of your site then the thanks message is ignored.
    • Use as search data - If 'yes' selected then the form's data is used for filtering the form's tables data.
    • Condition - PHP code which should return true or false. If it returns false then the redirect is not applied. Place holders can be used, so a simple example of a condition might be:
    • PHP:
      return (int) '{tablename___elementname}' === 1;
    The following options apply ONLY when redirecting from a content plug-in or module :
    redirect-module-opts.png


    • Context reset- Should the form be reset to a blank new entry when the redirect occurs
      • Context redirect - How should the redirect be handled:
      • Same page - the current page is reloaded with the redirect URL
      • New page - the redirect page is loaded in a new page/tab
    • Popup - the redirect page is loaded in a pop up window.
    If the context redirect is set to be 'popup' then the following Options set the popup windows location and properties :
    • Popup Width - the popup window width
    • Popup Height - the popup window height
    • Popup X Offset - the popup window X offset
    • Popup Y Offset - the popup window Y offset
    • Popup Title - the pop window's title

    Examples​


    Redirecting to a PDF view of the Submitted Record​

    Set the jump page URL to :
    Code:
    index.php?option=com_fabrik&view=form&formid=X&format=PDF&rowid={rowid}
    replace X with your form's id.
Back
Top