Form is *sometimes* submitted several times in a single microsecond

Summary

Form is showing 2-4 times in FormIt manager backend, all the same values, all submitted within the same second. It’s a very large form so it would be impossible to refill out the form. There are other form submissions that don’t have this happen, so I’m confused how this could happen.

Step to reproduce

I haven’t been able to reproduce it

Observed behavior

There doesn’t seem to be any similarities between the forms submitted

Expected behavior

A single entry in the FormIt backend manager for each submission

Environment

MODX 3.1.1-pl, FormIt 5.1.0-pl

Are there multiple FormIt snippet tags ([[!FormIt?...]]) on this page?
This could be the reason why the request gets seemingly processed multiple times by FormIt.

Also make sure that the FormIt snippet tag isn’t nested in other tags with output modifiers. If the MODX parser gets confused, the same tag may get processed multiple times.

No, there’s only one FormIt snippet on the page.

By nesting in output modifiers, do you mean something like this:

[[+placeholder:is=``:then=`[[!FormIt? ...]]`]]

Cached MODX tags are processed before uncached MODX tags. But nested MODX tags are processed before the surrounding one.

So if you have a uncached tag inside a cached tag, this could indeed create a problem for the MODX parser.

That was just an example to see if I understood what you meant, I don’t have anything like that in place

Is there a chance that the page somehow gets redirected to itself?
So that the whole page is processed repeatedly.

I don’t think so, the redirect hook is set up to go to one of the pages children