TOPIC:

Click on button to go to another Breezing Form 1 month 5 days ago #274448

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
HI,


for example, if we have two FORM where we want to send values from one to another, use this solution:

in the submit pieces insert this code in the FORM from where we want to send the value:
$this->execPieceByName('ff_InitLib');

$text1value=ff_getSubmit('text1frompage1');
$text2value=ff_getSubmit('text2');

ff_redirect("index.php?option=com_breezingforms&ff_name=page3param&text1={$text1value}&text2={$text2value}");

In the part of the code :
$text1value=ff_getSubmit('text1frompage1');
$text2value=ff_getSubmit('text2');

instead
'text1frompage1', 'text2'
inser names of elements that you want send.

In this part of code
ff_redirect("index.php?option=com_breezingforms&ff_name=page3param&text1={$text1value}&text2={$text2value}");
please insert URL of site.


In another FORM that received values (we are sending two values) create a two-element where value will be received and in the 'Properties' of element in section 'value' set this code
first element : <?php return JRequest::getVar('text1'); ?>
second element : <?php return JRequest::getVar('text2'); ?>

That's all I hope I explained this well!

Please test this option and let me know!


If you get to stuck, please let me know!


Regards,
Mirko


Please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).
In the zip file, you will find two FORM.
Attachments:

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

Last edit: Post by Mirec.

Click on button to go to another Breezing Form 1 month 1 day ago #274486

  • sitavs
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 24
  • Thanks: 0
Thank you, I'll try this tomorrow and let you know how it goes.

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

Click on button to go to another Breezing Form 1 month 1 day ago #274511

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

oke, take your time :)

Let me know the result!

If you have more questions, feel free to ask!

Regards,
Mirko

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

Click on button to go to another Breezing Form 1 month 19 hours ago #274597

  • sitavs
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 24
  • Thanks: 0
Thank you, it's working well.

I do have one further query though, I need to add a second submit button which goes to a different form, also populating a url parameter. How can I identify each of the buttons in the Submit script? Is it possible to add this script to the button actionscript instead?

Thanks in advance!

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

Click on button to go to another Breezing Form 1 month 1 day ago #274614

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

Is it possible to add this script to the button actionscript instead?

No, because this is PHP code, in the init script is the JS code

But we can make condiction IF statement, in the END SUBMIT pieces,

e.g

if (something ){
do somwthing
//send one URL parametar
}

if (something ){
do something
send second URL parameter
}

Is in the FORM some value by what that each URL are different, to we can use it value as condiction in the if statement, to FORM know on which address will be sent parameter

I hope you understand!

Regards,
Mirko

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

  • Page:
  • 1
  • 2
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!