Data in fields carried through multi forms

  • Wojtek1441
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 66
  • Thank you received: 0

Wojtek1441 created the topic: Data in fields carried through multi forms

Hi there,
I have two separate forms - can we carry over some data from some fields from one form to another?
Thanks
#224521
The topic has been locked.
  • Posts: 5061
  • Karma: 110
  • Thank you received: 473

MarioPuco replied the topic: Data in fields carried through multi forms

Hey there,

I am sending you 2 forms example below, download it, unzip and install via Package Installer. You will see to forms, Form A and Form B, open Form A and enter some name and submit, it will redirect you to Form B and field Name in Form B will be populated. So here is code that those form contains.

Form A:
Go to Form A -> Advanced tab -> More options -> Submit Pieces -> End submit -> Custom:
$this->execPieceByName('ff_InitLib');
$name=ff_getSubmit('name');
header('Location: index.php?option=com_breezingforms&ff_name=formB&name='.$name);

Here you are submiting the form and storing that value from name element.

Form B:
Has only code in Name Form A element in value field
<?php return JRequest::getVar('name');   ?>

This code will pull out value from URL query which we defined in Form A.

Let us know if that worked for you.

Rgds,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224599
Attachments:
The topic has been locked.
  • Wojtek1441
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 66
  • Thank you received: 0

Wojtek1441 replied the topic: Data in fields carried through multi forms

Thank you Mario!
#224614
The topic has been locked.
  • Posts: 5061
  • Karma: 110
  • Thank you received: 473

MarioPuco replied the topic: Data in fields carried through multi forms

Hi,

Glad I could help ! :)
If you have any other questions let me know.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224628
The topic has been locked.
  • Wojtek1441
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 66
  • Thank you received: 0

Wojtek1441 replied the topic: Data in fields carried through multi forms

Hi Mario,
It is not what I was looking for-
If you see on my example- if you go to mobile version(force mobile is enabled) from Form1 to Form2 by clicking "Unsubscribe from all communications" (on the bottom) and if you click submit without filling fields you will get
Validation errors from Form 1 which doesn't make sense- cause fields are different in Form 2

Can you please adivse on this?
thanks
Wojtek
#224657
The topic has been locked.
  • Posts: 5061
  • Karma: 110
  • Thank you received: 473

MarioPuco replied the topic: Data in fields carried through multi forms

Hello,

Can you maybe send me the link where I can see this issue ?

Rgds,
mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224659
The topic has been locked.
Moderators: ForumSupporttomeperica
Time to create page: 0.074 seconds

New Support System

Dear Customers,

Users with active subscription have support priority which will be dona via ServiceDesk (My Account > Raise a ticket).
FREE Support topics will be answered when AND if there is time.

You can check support guidelines here : here

Regards,
Crosstec Team

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here