TOPIC:

2 forms on 1 page 1 year 2 days ago #266222

  • Topic Author
  • behzad
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
I want a newsletter signup form at the top AND bottom of a page.

After successful submission, the user goes to a Thank you page.

I made 2 versions of the form, used modules to place them on the page, and put the second one in an iframe.

Problem: Both forms work, but the thank you page for the iframe form also loads in the iframe. It needs to load that page in the whole window and replace the current form page.

If there a better way to put two forms on the same page?
Is there a way to force the 2nd form to load the new page in the whole window and not just in iframe?

Thank you,
Behzad

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

2 forms on 1 page 1 year 2 days ago #266231

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11643
  • Karma: 3
  • Thanks: 756
Hi,

if you are using two forms on same page, one of the form should be in iFrame.

Are you using custom thank you page, or last page is thank you page?

Regards,
Tihana

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

2 forms on 1 page 1 year 2 days ago #266233

  • Topic Author
  • behzad
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Confirmed. The 2nd form is in an iframe.

There are 2 problems with the iframe.

1. The form takes the shape of the iframe and looks wonky. I think I can fix this with CSS.

2. The custom Thank You page (not form last page) loads in the same iframe. I need it to load into the whole page like the first form does.

Thank you,
Behzad

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

2 forms on 1 page 1 year 2 days ago #266234

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11643
  • Karma: 3
  • Thanks: 756
Hi,

1) for this please go to that form which is in iFrame->Advanced->More options->Settings->height and width (set this, and then form will be ok).

2)could you please post here the code which you are using for that?
If you want to break iFrame and appear it in main window use this:
$this->execPieceByName('ff_InitLib');
ff_redirect('urltothankyoupage', 'parent');

Regards,
Tihana
The following user(s) said Thank You: behzad

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

Last edit: Post by tihana.krivic.

2 forms on 1 page 1 year 2 days ago #266235

  • Topic Author
  • behzad
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Thank you.

Here's the code I WAS using:
$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('https://farhang.org/newsletter/newsletter-thank-you');

Tried your code with 'parent' target and it worked like a charm.

THANK YOU!

Now I just have to style the second form to look like the first.

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

Last edit: Post by behzad.

2 forms on 1 page 1 year 2 days ago #266236

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11643
  • Karma: 3
  • Thanks: 756
Hi,

super. :)

If you want I can help you with this, please send me link of first form, and link of second form (frontend).

And please send me login information and backend link.

Use this tag:
[confidential]
[/confidential]
Please write name of both forms

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.052 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!