Skip to content

Help Center

Not working with multiple forms on a page

If you have multiple forms on a page, you may notice that Attributer is working on some of the forms but not others (usually the form that is higher on the page).

This is because Attributer is designed to look for a form on a page, complete the hidden fields and then stop. So if there are multiple forms on a page, it stops after completing the first one.

The solution is to place the following bit of code on your site, directly beneath where you added the Attributer code:

<script>
window.history.pushState = new Proxy(window.history.pushState, {
apply: function apply(target, thisArg, argArray) {
window.setTimeout(function () {
document.FlareTrk.repop();
}, 500);
return target.apply(thisArg, argArray);
}
});
</script>

This basically tells Attributer not to stop looking for forms when it has completed the first one, and should therefore fix the issue of Attributer not working when there are multiple forms on a page.

This additional code should be placed directly beneath where you added the original Attributer code (as seen below):

Can't find the answer you need? Contact us!

Our team are available to answer any questions you have

Support Images