Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

One Form - Multiple Pages - Different Redirect URL

(0) ShareShare
ReportReport
Posted on by 152

Hi Folks

We created a single form for eBook downloads. The form is live on multiple pages in which each has its own related ebook.

Our goal is to redirect the visitor to the right ebook link after form submission. I tried to define multiple "form pages" and each has its own redirect URL. but it seems that its not working. 

Is this possible? if so, can you provide any pointers?

Regards and thank you in advance.

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: One Form - Multiple Pages - Different Redirect URL

    Hi Mouda,

    Could the solution work for you?

    Regards,

    Clofly

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: One Form - Multiple Pages - Different Redirect URL

    Hi Mouda,

    You can use a full-script solution, this way you avoid to create structure in Dynamics when you add a new eBook.

    First you can define a redirect url in your host page that points to your target redirect url:

    var redirectUrl = "http://ebookDownloadUrl";

    Then you can capture the "afterFormSubmit" event and redirect from there:

    MsCrmMkt.MsCrmFormLoader.on('afterFormSubmit', function(event) {
        window.location.url = redirectUrl;
    });

    Regards,

    Carlos

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: One Form - Multiple Pages - Different Redirect URL

    Hi Mouda,

    We should also copy the automatically generated script of other form page record to corresponding web page.

    pastedimage1604905740320v3.png

    z11.JPG

    Regards,

    Clofly

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans