• 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: multi page form TOP of page

multi page form TOP of page 9 years 9 months ago #31695

I am trying to break a form into a multipage form but when it advances to the second page it does not advance to the top of the second page. Is it possible to make it advance to the top of the page?
The administrator has disabled public write access.

multi page form TOP of page 9 years 9 months ago #31706

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
In order to achieve this you can try following these steps:

1. Head to Components > RSForm!Pro > Manage Forms > select your form > Properties tab > CSS & Javascript
2. Add the following script in the Javascript field:

<script type="text/javascript">

function myFun(){

document.getElementById('userForm').scrollIntoView();

}
</script>

Where the 'userForm' is the id of your form.

3. While editing the form add the following trigger in the Additional Attributes of your "Pagebreak" components:

onclick="myFun()"
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: sean3, Toad78, shmata

multi page form TOP of page 9 years 9 months ago #31805

  • Toad78
  • Toad78's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
This script DID work up until yesterday and am wondering if anyone can tell me where the conflict is? You can see an example here and click the button (at the bottom) "FINISH REGISTRATION".
The administrator has disabled public write access.

multi page form TOP of page 9 years 9 months ago #31815

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
I have taken a look at your form source code and it appears settings are incorrect. You used:

<script type="text/javascript">
function myFun(){
document.getElementById('3').scrollIntoView();
}
</script>

instead of:
<script type="text/javascript">
function myFun(){
document.getElementById('userForm').scrollIntoView();
}
</script>

Also, I have noticed that the "FINISH REGISTRATION" button does not have the correct trigger within its Additional Attributes field:
onclick="myFun()"

Try correcting the above-mentioned missconfigurations and it should work.
My help is not official customer support. To receive assistance, submit a ticket by clicking here
Last Edit: 9 years 9 months ago by bogdan.tataru.
The administrator has disabled public write access.

multi page form TOP of page 9 years 9 months ago #31820

  • Toad78
  • Toad78's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
Okay, it was my understanding that:
document.getElementById('userForm').scrollIntoView();

'userForm' was supposed to be the actually ID of the form, which is why I had a number in there.

So then I added 'onclick' in my actions for the 'FINISH REGISTRATION' button as follows and got it working:

class="btn btn-default";
onclick="rsfp_changePage(3, 3, 4, false); myFun()";


Thank you for your assistance!
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!