Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum

Marketing Forms load delay patch: Spinner

Posted on by 798

Hi All !!

I'd like to share with you a patch provided by Microsoft support team, regarding the delay between a marketing form time load (a form made with for marketing) and a landing page time load (internal or external).

Marketing solutions have to be very fast. People can't wait for a second and if no content is shown in that second, you can lose a lead.

What is this patch? a spinner:

How to add spinner:
1) Go to page editor, switch to html, in the <style> block add
#loaderSpinner { border: 16px solid #f3f3f3; /* Light grey */ border-top: 16px solid #3498db; /* Blue */ border-radius: 50%; width: 120px; height: 120px; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
2) Before the block with form (it contains this keyword: data-editorblocktype="FormBlock")
Sample: <div class="wrapperContainer" data-container="true"><div data-editorblocktype="FormBlock" class="" data-form-block-id="2f516d70-f0a7-e811-a967-000d3a34a1bd"></div>
Add this: <div id="loaderSpinner" class="wrapperContainer"></div>
So the modified html looks like <div id="loaderSpinner" class="wrapperContainer"></div> <div class="wrapperContainer" data-container="true"><div data-editorblocktype="FormBlock" class="" data-form-block-id="2f516d70-f0a7-e811-a967-000d3a34a1bd"></div>

3) After the start of body tag <body> add:

<script> (function() { MsCrmMkt.MsCrmFormLoader.afterformrender = function() { document.getElementById("loaderSpinner").style.display = "none"; }; })(); </script>
So the final html looks like
<body> <script> (function() { MsCrmMkt.MsCrmFormLoader.afterformrender = function() { document.getElementById("loaderSpinner").style.display = "none"; }; })(); </script>

I hope it has been helpful for you.

Bye!!

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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