• 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: Insert 2 times for 1 submit

Insert 2 times for 1 submit 4 years 11 months ago #40131

Hi.
I am try to add this php script into Script called on form process (RSForm Pro 2.3.13) but it inserts 2 times (2 records) after 1 submit
$db = JFactory::getDbo();
$insertToMyNum = "INSERT INTO #__rsform_mynum (submissionId,totalOfForm) VALUES ('111','222')";
$db->setQuery($insertToMyNum);
$db->execute();

My code:


Result:



PS: I test on RSForm! Pro 2.0.12 it inserts only 1 time

Please help me. Thank you!
Last Edit: 4 years 11 months ago by nhatnguyen. Reason: Update sql result
The administrator has disabled public write access.

Insert 2 times for 1 submit 3 years 3 months ago #41802

  • geral82
  • geral82's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hi!

We are having this same problem, with version 2.3.20.

Anyone solved this problem?

Thanks and regards!
The administrator has disabled public write access.

Insert 2 times for 1 submit 3 years 3 months ago #41804

  • geral82
  • geral82's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Problem solved with help of RSJoomla team!

For anyone with this problem, the issue is ajaxValidation on that area.

Using "Scripts called after form has been processed" area instead works, or using $isAjax boolean to check if it's validation.

Hope helps anyone!
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!