web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Capture form receiving duplicate submissions?

(0) ShareShare
ReportReport
Posted on by

We have run into an issue where our Capture Forms are receiving two submissions for each capture. It is only creating 1 contact and 1 lead 

Screen-Shot-2020_2D00_11_2D00_17-at-6.31.29-PM.png

Has anyone else run into a duplicate submission issue with Capture Forms?

Here is what our code looks like (keys obscured of course)

 

We are using Unbounce as our host and found we had to set data-ignore-prevent-default="true" or the forms would not receive any submissions.

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Joshua,

    A possible reason is that we execute another Marketing form API at onsubmit event of form.

    <form id="contactForm" onsubmit="submitForm()">

    function submitForm() {
        var form = document.getElementById("contactForm");
        MsCrmMkt.MsCrmFormLoader.sendFormCaptureToCrm(form);
    }

    Then it will create two submissions, but actually they are not duplicate, because the second submission will be used to update matching contact.

    To confirm this, we can add "Contact matching result" field to Marketing form submission form manually to check whether the field value of two submissions are different.

    We can find that submission 1 and 4 works as expected, because I removed the sendFormCaptureToCrm function.

    3250.JPG

    Comparison between record 2 and 3.

    c.JPG

    u.JPG

    Regards,

    Clofly

  • Community Member Profile Picture
    on at

    Clofly,

       This is not a Dynamics hosted form we are capturing. We are using capture forms to capture data from third party forms so the above javascript isn't relevant.  

    Is there another reason why capture form would receive 2 submissions from a single submit on a 3rd party form?

    Thanks

    Josh

  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Josh,

    I am not sure whether Unbounce would attach custom function to the form it built.

    For me, I created a plain HTML page and added form manually, it will create just one submission as expected.

    
    
    
    
      
      CRM Test Page
      
      
      
    
    
    
    
       
      
    
      
    
      

    Register now



    Copyright @ 2020 Contoso Ltd

    If possible, you could create a new page in Unbounce with my code, just replace form original tracking code with your owns to test again, to check whether it would still create 2 submissions.

    Regards,

    Clofly 

  • PiotrG Profile Picture
    70 on at

    Hi,

    I have exactly the same issue.

    When using below I get duplicated form submissions:

    <script src=loremipsum123n.azureedge.net/.../form-loader.js
    <div class="d365-mkt-config" style="display:none"
    data-website-id="dolorsitamet"
    data-hostname="loremipsum.svc.dynamics.com"
    data-ignore-prevent-default="true">
    </div>

    When using below I don't get any form submissions.

    <script src=loremipsum123.azureedge.net/.../form-loader.js
    <script>
    function submitform() {
    var form = document.getElementById("newsletterForm");
    MsCrmMkt.MsCrmFormLoader.sendFormCaptureToCrm(form);
    }
    </script>
    <div class="d365-mkt-config" style="display:none"
    data-website-id="dolorsitamet"
    data-hostname="loremipsum.svc.dynamics.com"
    data-no-submit="true">
    </div>

    Question: How should I modify this to get single form submissions?

  • Marcus Konden Profile Picture
    5 on at

    Hi, 

    I have the exact same issue where I get duplicate submissions when using form Capture Forms when having external form. Did you find the root cause and how to solve the issue? 

    Many thanks in advance, 

    Marcus  

  • PiotrG Profile Picture
    70 on at

    In our case the issue was in custom login on the form in the CMS

  • Carrie Garner Profile Picture
    60 on at

    We have also had this issue. It seems to be related to the user clicking the button multiple times and something the form application can't control (our client is using formstack) and we haven't been able to solve it yet. We're looking at moving to D365 forms embedded on the company sites instead. 

  • Under review

    Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

    Helpful resources

    Quick Links

    Responsible AI policies

    As AI tools become more common, we’re introducing a Responsible AI Use…

    Neeraj Kumar – Community Spotlight

    We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

    Leaderboard > Customer experience | Sales, Customer Insights, CRM

    #1
    Tom_Gioielli Profile Picture

    Tom_Gioielli 70 Super User 2025 Season 2

    #2
    Gerardo Rentería García Profile Picture

    Gerardo Rentería Ga... 33 Most Valuable Professional

    #3
    Daniyal Khaleel Profile Picture

    Daniyal Khaleel 32 Most Valuable Professional

    Last 30 days Overall leaderboard

    Product updates

    Dynamics 365 release plans