Announcements
I also add this script where I want the form to display
Form code<div data-form-block-id="xxx"></div> <script src="">mktdplp102cdn.azureedge.net/.../form-loader.js <div id="xxxxxxxx"></div><script src="">mktdplp102cdn.azureedge.net/.../ws-tracking.js class="d365-mkt-config" style="display:none" data-website-id="xxxx" data-hostname="xxxx.svc.dynamics.com"></div>
The Javascript console in my browser mentions that form-loader is included twice, and looking at the scripts, I see a lot of duplication. Do I need to repeat this code? Can I use less code where I want to display the form?
ThanksPete
Hi Pete,
To embed a marketing form into an external website, you just need to copy the script in the marketing form page to the HTML of the website.
Yes, I understand this. But the "JavaScript code" and "Form capture code" which you add to every every page when you set up a marketing website, include some duplicate scripts. Can these be omitted from the script used on the form page?
Pete
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Tom_Gioielli 58 Super User 2026 Season 1
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Eugen Podkorytov 49
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Fiona_Tiernan 22 Moderator