• 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: Run Javascript on Form Load

Run Javascript on Form Load 2 weeks 1 day ago #39384

  • snewfeld
  • snewfeld's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
In RSForms!Pro I am running SQL to populate a select box from some Membership Pro custom field data. I then run Javascript to create a Javascript object from the select box elements so I can flexibly use the values elsewhere on my code. I want to trigger javascript on page load and tried the RSJOOMLA FAQ at www.rsjoomla.com/support/documentation/r...s-being-loaded-.html

window.addEvent('domready', function() {
your_custom_script
});

But in the Chrome Debugger I get window.addEvent is not a function

How do I run Javascript on an RSForm page load?
Your help would be much appreciated.
The administrator has disabled public write access.

Run Javascript on Form Load 1 week 1 day ago #39397

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

You can try the following variation instead:
<script type="text/javascript">
window.onload = function(){
//code to run here
};
</script>
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!