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

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