• 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: PHP Script fired several times

PHP Script fired several times 5 years 7 months ago #39481

  • info4605
  • info4605's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,
in RSForms Pro version 2.2.6 the counter value is called several times in PHP script (Script called on form process). I have Ajax validation on. The counter is incremented even if the form has an incorrect entry. How can I query the validity of the form. So that I increase the counter in the database with valid values.
The administrator has disabled public write access.

PHP Script fired several times 5 years 7 months ago #39483

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

Starting with version 2.2.5, RSForm!Pro has the 'Scripts called on form processed' area triggering along with the AJAX validation. This choice was made so that it offers more custom flexibility when it comes to run PHP right before the form validates (something previously not possible without some extensive workarounds).

You can however prevent this by either:

- moving the script within the "Scripts Called after form has been Processed" area (this will eventually depend on how your implementation works).

- or by enclosing your current script with the following snippet (notice that all your code would be included in this IF statement):
if (strtolower(JFactory::getApplication()->input->get('task')) != 'ajaxvalidate') {
    //your whole code goes here.
}
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: yolknet, info4605

PHP Script fired several times 5 years 7 months ago #39484

  • info4605
  • info4605's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
great works thank you.
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!