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
E.g. www.mywebsite.com/marketingform.html

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>

Share this Article

Search Articles

Filter Articles

CRM Tech DocMan

Recent Articles

Dynamics 365 Marketing vs ClickDimensions It’s time to pause, reflect and acknowledge a new era of inclusivity and collaboration. Part 2 - How to get the most from a Technology Expert – Asset Management Hub Property & Asset Management Hub Part 1 – Balancing CRM and Asset Management Scopes - Asset Management Hub Creating a Multi-Lingual PowerApps Portal How to Set Up a Microsoft Teams Site Using DocDrive365 Microsoft Teams - Adding a Microsoft Teams URL to a Dynamics Appointment Dynamics 365 Marketing – Customer Voice Survey Not Appearing In Emails? Using SQL Management Studio to connect to the Dynamics DB Calling a Power Platform AI Builder Model via oData How to use DocDrive365 to integrate permissions between Business Units in Dynamics with Sites in SharePoint Getting started with the Power Platform AI Builder. Power Apps Portal Information Hub DocDrive365 Security: Day One - Getting Started with Dynamics to SharePoint Permissions Part 5 - Power Apps Portals: How To Connect Azure B2C With Linked-In Part 4 – Power Apps Portals: Styling Azure B2C for Power Apps Portals The 3 Phases for Using Multi-Select Option Sets in Flow with Microsoft Forms Part 3 – PowerApps Portals: Azure B2C and Power Apps Portals – User Flow for Signup and Signin Part 2 - Power Apps Portals: New Application Registration in Azure B2C for our Power Apps Portal Part 1 – Power Apps Portals: Creating a New Azure AD B2C Tenant The Automation Bot: Launching Contextual Flow from Teams Creating a New Bot for Teams Debugging your Teams Bot using Ngrok Adding a Microsoft Teams URL to a Dynamics Appointment
Contact Us

Want expert advice or a demo?

Get in touch now and see how we can help your business grow.

  • Name
  • Email Address
  • Phone Number

Understanding Your Challenges

Our strong understanding of CRM and emerging technologies within the Microsoft environment means we deliver the right solutions for you.

Proven Real-World Solutions

As a leader in the field of Dynamics solutions, our pedigree developing and delivering real-world solutions is unsurpassed.

Long Term Support

We provide support beyond our design, implementation and 'go-live' delivery using Sprints and continual updates to our AppSource apps.

CRMCS | Design by Thinktank Marketing | Citrus-Lime Limited

To improve your experience today and in the future, this site uses cookies. Read our full Privacy Policy & Cookie information here I Understand