Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Capture form receiving duplicate submissions?

Posted on by Microsoft Employee

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.

  • Carrie Garner Profile Picture
    Carrie Garner 60 on at
    RE: Capture form receiving duplicate submissions?

    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. 

  • PiotrG Profile Picture
    PiotrG 70 on at
    RE: Capture form receiving duplicate submissions?

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

  • Marcus Konden Profile Picture
    Marcus Konden 5 on at
    RE: Capture form receiving duplicate submissions?

    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
    PiotrG 70 on at
    RE: Capture form receiving duplicate submissions?

    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?

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Capture form receiving duplicate submissions?

    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 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Capture form receiving duplicate submissions?

    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

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Capture form receiving duplicate submissions?

    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

  • 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

    December Spotlight Star - Muhammad Affan

    Congratulations to a top community star!

    Top 10 leaders for November!

    Congratulations to our November super stars!

    Tips for Writing Effective Suggested Answers

    Best practices for providing successful forum answers ✍️

    Leaderboard

    #1
    André Arnaud de Calavon Profile Picture

    André Arnaud de Cal... 291,280 Super User 2024 Season 2

    #2
    Martin Dráb Profile Picture

    Martin Dráb 230,214 Most Valuable Professional

    #3
    nmaenpaa Profile Picture

    nmaenpaa 101,156

    Leaderboard

    Featured topics

    Product updates

    Dynamics 365 release plans