• 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: Variable value in caption for multipage forms

Variable value in caption for multipage forms 11 years 3 weeks ago #27605

Hi

I want to pass values ​​from my page 1 to page 3 in my field caption that is possible?

Thx
The administrator has disabled public write access.

Variable value in caption for multipage forms 11 years 2 weeks ago #27615

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You can achieve this by using the script from the Preview data before submit article from RSForm!Pro Documentation. The code needs a little editing because the one from the example shows you how to create a Freetext field that stores the information you have submitted along the pages.

The example below will copy the value from a text box (named 'FullName') in another text box (named 'TextboxTest') in a 3 page form (RSForm!Pro Multipage Example)
<script type="text/javascript">
function copyF(param1, param2, param3, param4)
{
if (param2 == 2 && param3 == 2)
{
document.getElementById('TextboxTest').value = document.getElementById('FullName').value;
 
}
rsfp_changePage(param1, param2, param3, param4);
}
</script>

After this, head to PHP Scripts and insert in 'Scripts called on form display' the following:
$formLayout = str_replace('rsfp_changePage(','copyF(',$formLayout);

This script will trigger the function that will copy the value from one place to the other when the Next page button is clicked.
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 11 years 2 weeks ago by cosmin.cristea.
The administrator has disabled public write access.

Variable value in caption for multipage forms 9 years 1 month ago #34837

  • mannpur
  • mannpur's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi and thx, that's what i need!

BUT

1. Unfortunately I do not know exactly where to put the code, with the javascript?

AND

2. I do not understand where the params 1-4 come from? I just have two steps / pages in my form, while (of course) the value in step 1 should be used in step 2. Does that change the params?
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!