• 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: Preview Data & Multi Page form

Preview Data & Multi Page form 11 years 9 months ago #24300

  • micah4
  • micah4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hello,

I have a multi page form with a data preview step at the end.

I want the page to scroll to the top when the user switched between form pages.

Here is my specific problem.

In the form properties in the PHP Scrips section $formlayout, I have the following code for the data preview.

$formLayout = str_replace('rsfp_changePage(','preV(',$formLayout);

The code that enables the browser to scroll to the top is:
$formLayout = str_replace('rsfp_changePage','rsfp_changePageScroll',$formLayout);

Not being a programmer I am stuck. Can this line of code be re-written to allow for the data preview to work and the browser scroll up to work?

I used the following instructions to get this far.

www.rsjoomla.com/support/documentation/v...a-before-submit.html

www.rsjoomla.com/support/documentation/v...-be-scrolled-up.html

Thanks for any and all help.

Micah
The administrator has disabled public write access.

Preview Data & Multi Page form 11 years 9 months ago #24309

Hello micah,

Yes this is possible with a few minor modifications. First go to "CSS and Javascript" and paste the following under your "Data preview" code:

<script type="text/javascript">
function rsfp_changePageScroll(param1, param2, param3, param4)
{
preV(param1, param2, param3, param4);
scroll(0,0);
}
</script>

The PHP script will also have to be modified with the following:

$formLayout = str_replace('rsfp_changePage','rsfp_changePageScroll',$formLayout);
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
The administrator has disabled public write access.

Preview Data & Multi Page form 11 years 9 months ago #24313

  • micah4
  • micah4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hello,

I have already tried this. The problem is that when I change the php to:

$formLayout = str_replace('rsfp_changePage','rsfp_changePageScroll',$formLayout);

The form preview no longer populates the preview data.

I need to do both functions, populate the preview data and scroll to the top of the screen.

Micah
The administrator has disabled public write access.

Preview Data & Multi Page form 11 years 8 months ago #24585

Which is most likely caused by the missing "preV(param1, param2, param3, param4);" statement in your rsfp_changePageScroll function.

Keep in mind that the preV function is the function that does the preview data population, and if this is not triggered the preview will not be populated.
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
The administrator has disabled public write access.

Preview Data & Multi Page form 11 years 3 months ago #26383

Hey Micah4 - did you ever get this to work? If so, could you please elaborate on the forum.

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!