web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Marketing form download with success-view

(0) ShareShare
ReportReport
Posted on by

Hi

We want to trigger a download via a marketing form. We solve this via a redirect URL. Unfortunately, the success message "Thank you for submitting" is not displayed. The form just stays filled in. How can we trigger both? Display the download via redirect URL and the success message?

Thank you very much in advance.

I have the same question (0)
  • Suggested answer
    MaiElorym Profile Picture
    40 on at

    Hi, 

    are  you hosting your form on external website, or are you using Portal?

    We are hosting our forms on external website and this worked for me. After copying the script to the external page, I have added another script to initiate download after submitting the form. It looks something like this:

    <script>
    var pdfUrl = "URL with the pdf file";

    MsCrmMkt.MsCrmFormLoader.on('formSubmit', function (event) {
    window.open(pdfUrl, '_blank');
    });
    </script>

    You only need to add the URL link for the PDF file in the var section (it is marked in red). 

    This on my end triggers automatic download, no new window opens, the form shows "Success" message, and you don't need to use Redirect URL

    Let me know if this also helps you

    MaiElorym

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 214 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 76

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans