TOPIC:

how to use ff_redirectForm 7 years 11 months ago #82616

  • Topic Author
  • charra
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 142
  • Thanks: 1
Hello, i m trying to use redirectfrom
in a piece, i wrote
$this->execPieceByName('ff_redirectForm');
'Myform';

And i made a lot of trials using different code but nothing !!
Can someone help me ?

Please Log in or Create an account to join the conversation.

Re: how to use ff_redirectForm 7 years 11 months ago #82645

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
... we already have code for this:

Create an END SUBMIT piece.

Form Properties > Advanced Tab > More Options > Submit Pieces Tab

Then click on "CUSTOM" in the END SUBMIT section and paste in the following code:

$this->execPieceByName('ff_InitLib');
ff_redirect('/myThankYouPage.php');


If you are redirecting to a page outside of your server, then it should be coded like this:

$this->execPieceByName('ff_InitLib');
ff_redirect(' www.yourDomain.com/page.html ');


If your form is displayed in an iFrame and you want the page you are redirecting to, to break out of the iFrame and appear in the main window, use this code instead:

$this->execPieceByName('ff_InitLib');
ff_redirect('/myThankYouPage.php', 'parent');



or, if redirecting to a page outside of your server:

$this->execPieceByName('ff_InitLib');
ff_redirect(' www.yourDomain.com/page.html ', 'parent');

(Remember to replace the /myThankYouPage.php or www.yourDomain.com/page.html with the correct URL for your thank you page!)

Once you have added that code, click on the SAVE button at the bottom of that screen. You will then be taken back to the form's property screen. Click on SAVE PROPERTIES to save the changes to the form's properties, and then click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.

Please Log in or Create an account to join the conversation.

Re: how to use ff_redirectForm 7 years 11 months ago #82668

  • Topic Author
  • charra
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 142
  • Thanks: 1
Thanks, have a nice day

Please Log in or Create an account to join the conversation.

Re: how to use ff_redirectForm 7 years 11 months ago #82704

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
your most welcome:


If you use BreezingForms, please post a rating and a review at the Joomla! Extensions Directory:
extensions.joomla.org/extensions/contact...-feedback/forms/4709

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.048 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!