Forums

Issue with submission on multi page form

superdmon 28 Mar, 2018
I'm having some complications with a multi-page form on Chronoforms v5 on Joomla 3.8.6

I have Authorize.net as a payment processor and no matter what I do, the form seems to keep submitting twice rather than just once. It's a donation form for a museum and there's about 7 pages total with data being pulled from a custom component I created. I'm kind of at a cross roads and I'm not sure why this is happening.

I've looked on the forums and couldn't find anything relating to this problem and I doubted I would as the form is pretty complicated in terms of what it's trying to accomplish with three separate events inside an event switcher.
Max_admin 29 Mar, 2018
Hi superdmon,

How do you know that a double submission occur ? do you have other actions with Auth.net at the same event ? do they get processed twice too ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
superdmon 29 Mar, 2018
I do have multiple actions along side Auth.net action and they do not submit twice. I have DB save, a save to a Google Spreadsheet and two emails being sent out after submission.

We were using developer credentials to test the form and it was working fine - but as soon as switched out with the client's *actual* credentials is when were starting to get duplicate errors. It's important to note that I created a "test" form without multipage and the form submits successfully without the duplicate error.

I've posted a screen shot of my actions. There is an event switcher as the form has three options for payment. The Museum has options for "Monthly payments", "One Time payments" and to pay via check (which isn't shown and just submits the form).

I have removed the event switcher in a test (with just the Auth.net action) and it still attempts to submit twice no matter what, every time. The "Monthly payment" is a recurring payment and I wrote custom code as the Authorize.net action doesn't support that feature. No matter if it's a "One Time" or "Monthly" payment, the response from the gateway is that a duplicate entry was submitted.

I can also provide a backup of my form file without the client's credentials if needed.
GreyHead 02 Apr, 2018
Hi superdmon ,

What exactly is in your Custom Code action?

Bob
superdmon 02 Apr, 2018
It's a code snippet that allows for reoccurring monthly payments.

The code works without multipage and I should mention no matter if I use the Authorize.net action or the custom code, the response from the gateway is always the same (Duplicate transaction).
superdmon 03 Apr, 2018
Whoops, I realized I made a slight error. In my screen shot, the custom code shown there is actually the script that handles the code that writes the submission data to a Google Spreadsheet. Removing it doesn't fix the issue.

There is an event switcher that handles the process I described above.
GreyHead 03 Apr, 2018
Hi superdmon ,

I'm sorry but there simply isn't enough information here to have the first idea what is causing the duplicate submission. The most obvious explanation would be a loop somewhere that re-runs the ANet action.

Bob
superdmon 03 Apr, 2018
Answer
I figured out where my problem was.

I had loaded the menu item type as a Chronoforms5 form but had loaded a custom template that was also loading the same form via a Chronoforms5 module (it had been setup previously and I had forgotten to disable it).

The odd thing was that the form was not displaying twice but once I disabled the module, I stopped receiving the duplicate errors. Thanks for looking into it!
This topic is locked and no more replies can be posted.