• 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: Javascript doesn't work on RSForm

Javascript doesn't work on RSForm 9 years 7 months ago #32559

  • info3085
  • info3085's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Can anybody help me with RSForm javascript.
I put this script in
( Javascript You can add your Javascript declarations here. Remember to add the <script> tags )

<script type="text/javascript">
function preV(param1, param2, param3, param4)
{
if (param2 == 1 && param3 == 1)
{
document.getElementById('nameP').innerHTML = document.getElementById('Name').value;
document.getElementById('emailP').innerHTML = document.getElementById('Email').value;
document.getElementById('messageP').innerHTML = document.getElementById('Message').value;

var i;
for(i=0;i<document.getElementsByName('form[RadioGroup]').length;i++)
if (document.getElementById('RadioGroup'+i).checked)
document.getElementById('radioGroupP').innerHTML = document.getElementById('RadioGroup'+i).value;
var j;
for(j=0;j<document.getElementsByName('form[CheckGroup][]').length;j++)
if (document.getElementById('CheckGroup'+j).checked)
document.getElementById('checkGroupP').innerHTML += " " + document.getElementById('CheckGroup'+j).value;
}
rsfp_changePage(param1, param2, param3, param4);
}
</script>

I seems RSForm don't recognize javascript.
How can i fixed this ?
The administrator has disabled public write access.

Javascript doesn't work on RSForm 9 years 6 months ago #32581

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can find the full tutorial here. This also requires a small PHP script (which is also provided in the article - bottom section) that changes the default pagination function with this custom one (you've either missed this step or you're having incorrect declarations within the script).

For further difficulties, a direct URL where we can view your form in the frontend area would help.
This is not official customer support. To receive your support, submit a support ticket here.
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!