I want to know whether there's a way to prevent a lead getting created 2 times inside Marketo when a lead go in and submit a form twice in a row. I contacted support and they said that a lead like this get created inside Marketo twice because the data sync get delayed. So when a lead submit a form it doesn't get added to marketo right away and there's a delay because of this delay when the same lead go ahead and submit a different form right after the first one, this causes this specific lead to have 2 record in Marketo because the 1st time submission takes times to sync up.
Is there's a way to prevent this from happening do we won't have duplicate records inside Marketo?
If you’re talking about non-malicious people submitting in the same browser session, yes. You can use LocalStorage or a cookie to flag that they’ve submitted in the past 5 minutes and grey out/hide the form for that time.
This won’t work across browsers or against people who are purposely ill-behaved.