• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Pass values from one form to another?

Pass values from one form to another? 11 years 11 months ago #22968

  • TankWart
  • TankWart's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi there,
Can someone explain how I can pass two values ​​from one form to another?

This description does not help me :
www.rsjoomla.com/support/documentation/v...-different-form.html

Thank you for your help

Greetings
TankWart
The administrator has disabled public write access.

Pass values from one form to another? 11 years 11 months ago #22984

  • TankWart
  • TankWart's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Here is a very good explanation of Silviu

Thanks again for that!!

I will try to explain:

Form A - the first form that gets submitted
Form B - the form that the user is redirected to after submitting Form A. Form B will display the auto-completed information from Form A.

To set this up correctly, please edit Form A and head to Properties >> Form Info and add a link similar to this one:

www.your-site-name.com/index.php?option=...{global:submissionid}

in the 'Return URL' field. Please note that you will need to replace, within that link, 'your-second-form-id' with the actual id of Form B, and 'www.your-site-name.com' with the actual link to your website.

The {global:submissionid} placeholder is used to identify the Form A submission from which the information will be added in Form B.

Then, please edit Form B, head to Properties >> Form Layout >> set 'Auto Generate Layout' to 'No' and add, in it's layout, the {fieldname:value} placeholders of the Form A fields you wish to have auto-completed in Form B.

After doing so, please add the following code:

$submission_value = JRequest::getVar('submissionId');
list($replace, $with) = RSFormProHelper::getReplacements($submission_value);
$formLayout = str_replace($replace, $with, $formLayout);

in Components >> RSForm!Pro >> Manage Forms >> edit Form B >> Properties >> PHP Scripts >> 'Scripts called on form display' area. This script will replace the placeholders with the actual values, based on the Form A submission id.
The administrator has disabled public write access.

Pass values from one form to another? 11 years 11 months ago #23102

  • info0054
  • info0054's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
This is really helpful, thank you...

Now, does someone know how I can ad a link in form B that points to the user record filled out in Form A (in viewing mode)?

My native language is not English, so I hope this is not too confusing ;)

Martin
The administrator has disabled public write access.

Pass values from one form to another? 11 years 11 months ago #23204

Is is possible to have RsForms Pro do this across domains? When domain2 submits the form as a Java Script?

So FormA is on domain1, when a user presses submit, the form data is populated in to a different domain2 which then does domain2's java script?

A non-Java working example is:

rrinfo.co.ramsey.mn.us/public/characteristic/index.aspx

User submits data into Form A on domain1, the form redirects to the URL below:

rrinfo.co.ramsey.mn.us/public/characteri...chResults.aspx?pin=&Nbr={House Number:value}&Street={Street Name:value}&pg=1&XStreet=true&submitbutton=Submit

Can this be done when the domain2 doesn't have "nice" URLs like above?

Thanks
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!