TOPIC:

iFrame and Page Redirect on Submit 2 years 1 week ago #253057

  • Topic Author
  • gvalcho
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 41
  • Thanks: 0
I have a form that displays in an iFrame. I just added a redirect to a Thank You page on Submit Pieces->End Submit for Google Ads Tracking.

The redirect displays the Thank You page in the iFrame. Therefore, I have a page-within-a-page on the website. The redirect does not send the user to the Joomla menu item.

Here is my redirect code, which I pulled from the forum:

$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('thankyou');

How do I skip the iFrame and redirect the user to the actual menu item?

Thank you, George

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

iFrame and Page Redirect on Submit 2 years 1 week ago #253059

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 778
Hi,

go to your form-> Advanced-> More Options -> Submit Pieces ->end submit->check custom and put this:
$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('yoururl', 'parent');
Please replace yoururl with url of your thank you page

Regards,
Tihana

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

iFrame and Page Redirect on Submit 2 years 1 week ago #253062

  • Topic Author
  • gvalcho
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 41
  • Thanks: 0
Thank you for the very fast reply.

I changed to this:

$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('thankyou', 'parent');

But the redirect still displays within the iFrame, and now it also includes this: "Message: parent" in a light green box with a Thumbs Up icon.

George

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

iFrame and Page Redirect on Submit 2 years 1 week ago #253063

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 778
Hi,

this 'thankyou' should be url of your thank you page.
Here is explained:
crosstec.org/en/support/online-documenta...-thank-you-page.html

Regards,
Tihana

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

iFrame and Page Redirect on Submit 2 years 1 week ago #253065

  • Topic Author
  • gvalcho
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 41
  • Thanks: 0
Still the same with this:

$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('harkfestival.org/thankyou', 'parent');

and with this:

$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('/thankyou', 'parent');

I have not tried with "thankyou.php" as in the example you referred me too, because I don't see the .php as a Joomla Url.

George

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

iFrame and Page Redirect on Submit 2 years 1 week ago #253066

  • Topic Author
  • gvalcho
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 41
  • Thanks: 0
I'm sorry my first example above is actually this:

$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('harkfestival.org/thankyou', 'parent');

I don't know how the https:// was left off my response.

George

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

Last edit: Post by gvalcho.
Moderators: ForumSupport
Time to create page: 0.061 seconds

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!