I am having an issue The form fields are repeating while implementing marketo form with gatsby at times.
Upon inspecting the form i can see its just one form not two
Have anyone faced this issue before? Please suggest some resolutions for this
Please find the link below:
To reproduce the issue easily, you can switch between pages quickly by clicking links "Go to page 2" (in Page 1) and "Go back to the homepage" (in Page 2).
Right now I see no form at all on the page. I assume you're working on it, which makes troubleshooting impossible.
In any case — the cause is almost certainly that you're running loadForm() multiple times by accident, this is the expected behavior when you do that.
Here it is loading fine. Can you please hard refresh the page?
May be fine now, but certainly not when I posted many hours ago.
You need to look for multiple calls to loadForm(), as that's always the cause of this behavior. So there's an incorrect condition somewhere in your code — something like a forgetting to flip a flag when a function has already called. But you haven't simplified it enough for 3rd-party debugging.