Support Portal ContactGet in touch

Dynamics 365 for Marketing: Embedding a Marketing Form on a website

   Words by Ciaran Reynolds

   on 04/12/2019 15:45:00

Dynamics for Marketing allows you to add Marketing Forms to Marketing Pages, which are hosted on the Microsoft Portal, that forms your Dynamics for Marketing tenant. Most people would want to host their Marketing Forms on their own website, and this is possible with Form Hosting.

First of all you need to create a Marketing Form and make it live. Only then will the Form Hosting tab appear.


Here you will need to create a Form page and a whitelist rule


Use the quick create form to add a form page


Use the quick create form to add a whitelist rule. Add your website as the name for the whitelist rule.


Once you have added your form page and whitelist rule, open the form page. Here you will see the script needed to embed the form on the website from the whitelist rule.


You will then need to pass the script onto a developer so they can embed the marketing form on a webpage of your choice. Depending on what type of web server and CMS system you are using, you may need to adjust the code (for example, by escaping some special characters), or adjust your system settings to allow scripts such as this one to be pasted in. See your web server and CMS documentation for details.
If done correctly, your form will appear like so:


ASP.NET Websites
Both ASP.NET pages and the Marketing Form code include form tags. These form tags will conflict and prevent the ability to submit data. To make your Marketing Form work on your ASP.NET pages, we recommended the following:

a. Embed your Marketing Form script on a separate, HTML webpage within your site

b. On the page you wish to embed the Marketing Form, create an iframe and set the source to match the URL of the page where the Marketing Form is hosted
E.g. <iframe src=" marketingform.html" width="100%" height="560" style="border: none;"></iframe>

  • "Paul has made a real difference to how my team of 24 people record and store valuable customer data and sales opportunities. Highly recommended."

    James, Operations Director

  • "Understanding your business allows us to advise when to implement aspects of CRM and, likewise, when not to."

    Paul McQuillan, Managing Director

  • "Dynamics 365 and CRMCS have made a real lasting difference to our business, allowing us to replace older systems that were holding back our performance."

    Grahame, Chief Operating Officer

  • "James worked well with us to help connect CRM with Outlook and relate how this might benefit our team using CRM for Property Care."

    Natalie, Property Care Supervisor

  • "Matt was really good with helping us run User Testing on the new Compliance Module of our CRM System."

    Tom, Compliance Administrator

Prefer to go old-school?

Write to us using the below addresses.

Head Office
CRM Consultancy
61 Oxford Street
M1 6EQ

London Office
CRM Consultancy London
Grosvenor Avenue

Content © CRM Consultancy.