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,...
Answered

Embedded Marketing form doesn`t show up on external Webpage

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I´ve tried to embed a Dynamics 365 Marketing form on an external Webpage. The Domain of the Webpage is already authenticated in Dynamics 365 Marketing.

After copying the script Code to the external Webpage, I got the following error message:

This page has a marketing form embedded on it, but the domain where this page is published isn't whitelisted for use with that form.

Please go to Dynamics 365 Marketing and add this domain to the whitelist for the form embedded here.

(The marketing form was created as type of subsciption form, so after going live the whitelist rules didn´t appear under form- Hosting)

Thanks in advance.

Best regards

Alexander

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

    Hi Alex,

    Please check following settings:

    1. Make sure everything is configured well in authenticated domain.

    pastedimage1582193127100v2.png

    2. Did you paste code from form page record on your page?

    pastedimage1582193407928v3.png

    3. Did you open external web page directly?

    In theory, if step 1 and step 2 both went well, then we shall see the form.(but we can't submit data unless we open the page from subcription center link in marketing email)

    4. How did you run your web page? There is a note in related doc which you could take it as reference:

    "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."

    In addition, you could also open developer tool(F12) to check error logs in browser console.

    Regards,

    Clofly

  • Community Member Profile Picture
    on at

    Hi Clofly,

    I tried to open the page directly over the URL www.ps-speciher.de/crm.php and got the error message.Step 1 and 2 both went well.

    Error-Page.PNG

    When I try to mopen the form via a link in an E-Mail everything opens. But the embedded form should also be displayed on the external Webpage.

    Regards

    Alexander

  • cloflyMao Profile Picture
    25,210 on at

    Hi Alexander,

    Does "everything opens" mean you can see subscription center form on page if you open the form via link?

    How did you set your subcription center field in content settings? I've set it to the path for my page.

    pastedimage1582197506634v1.png

    Does the issue also happen to landing page type form?

    In addition, I host my form on static website,

    from your URL, it seems that you're hosting form on php website,

    try to create a static html format page under your website path to test again.

    Regards,

    Clofly

  • Community Member Profile Picture
    on at

    Hi Clofly,

    yes, when Opening it via link I see the subscription form.

    I`ve set the subscription center field to a Dynamics Marketing page where the subscription form is embedded.

    I´ve not tried out to do this with a Landing page form.

    Why di you think, that a php Website could cause problems?

    Best regards

    Alexander

  • cloflyMao Profile Picture
    25,210 on at

    Hi Alexander,

    It seems that currently your subscription center form works on native Dynamics Marketing page(Portal?), because its domain has been authenticated.

    You could test on landing page form for more troubleshoot, just populate whtelist website field with your root domain: https://xxx.com/.

    Because my test is based on static website(https://maoalex.best/custom/sub.html), I'm not sure whether there is any further necessary settings for php page.

    In addition, is your authenticated domain same to website where you host subscription center form?

    Regards,

    Clofly

  • Community Member Profile Picture
    on at

    Hi Clofly,

    I have further Information About the CMS System and the Webserver. Maybe this helps you:

    Webserver

    • Data Center from All-Inkl

    • OS is Ubuntu 16.04.6 LTS

    • PHP Version 7.2

    • all-inkl.com/.../ [all-inkl.com]

    CMS

    • The page is not connected to the CMS, so pure PHP-Skript

    • PHP-Page contains a HTML-body and in this body the code form the markeing form (Form-Hosting) is embedded there

    SSL-Zertifikat

    • Let’s Encrypt Zertificate V3 valid until 18.03.2020

    Best regards

    Alexander

  • cloflyMao Profile Picture
    25,210 on at

    Hi Alexander,

    Thanks for sharing detailed information.

    I've tried to create a same environment as yours.

    • OS Debian 8

    • PHP 7.2

    • pure php without CMS

    •  Let’s Encrypt X3

    You can see these information on my index page:

    https://maoalex.best/ (there is a phpversion() function and some test code)

    My form can still display on page:

    https://maoalex.best/mycrm.php

    I copied your code in crm.php to my crm.php and got the same error as yours:

    https://maoalex.best/crm.php

    The error also happens for script which I copied from another organization instance:

    https://maoalex.best/crm2.php

    So we could conclude that each embedded marketing form could be only binded to a specific organization.

    The following troubleshoot would be:

    1. How did you authenticate your domain?

    For myself, I authenticated maoalex.best(root domain) and everything works well.

    Did you also authenticate your root domain? Is website which host your crm.php also your root domain?

    2. Create a new subscription form and embed it on page to test again.

    (I suggest you could also test on landing page form and check whether formloader works properly on you organization)

    Regards,

    Clofly

  • Community Member Profile Picture
    on at

    Hi Clofly,

    I also authenticated the rott Domain ps-speicher. The Website which hosts crm.php is also the root Domain. I executed Step 2, but the same error message appeared.

    Best regards

    Alexander

  • cloflyMao Profile Picture
    25,210 on at

    Hi Alexander,

    From you first sceenshot, I found you website is ps-speicher.de.

    Did you also authenticate ps-speicher.de instead of ps-speicher?

    In addition, I found that when I try to open ps-speicher.de, the link in tab display https://www.ps-speicher.de for a moment.(very short time)

    Then when I open your page with form(https://www.ps-speicher.de/crm.php) , I found another fact:

    By default it displays https://www.ps-speicher.de/crm.php

    pastedimage1582279876406v1.png 

    When I selected then unselected link, the link became to https://www.ps-speicher.de/crm.php

    pastedimage1582279977720v2.png

    So I think we might had found a key, from what I've found,

    it seems that your page is actually hosted on www.ps-speicher.de(a subdomain) instead of real root domain(ps-speicher.de).

    My thought is that actually we open your web page via www.ps-speicher.de, but then your web server redirects us to ps-speicher.de.

    In other word, the www.ps-speicher.de might had been overwriten by ps-speicher.de.

    Subdomain will be treated individually by Marketing application even if we have authenticated root domain.

    Please try following steps for final approach:

    In settings of your domain provider,

    1. Add TXT record for subdomain www.ps-speicher.de.

    2. Add 2 CNAME records for www.ps-speicher.de.

    (You might need to append www after namekey1_domainkey, e.g: namekey1_domainkey.www as Host, but we won't need to change Value)

    Send confirmation request for www.ps-speicher.de.

    Once two fields got confirmed, then open your page to check whether it could display.

    Regards,

    Clofly

  • Suggested answer
    makova Profile Picture
    310 on at

    Hi Alexander,

    Please have you've tried to authenticate domains following this guide: docs.microsoft.com/.../mkt-settings-authenticate-domains

    Thanks

    Martin Kovac, Microsoft Dynamics 365 Marketing

    Don't forget!: If you have gotten the answer to your question - please mark your question as answered.

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... 43 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