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

Community site session details

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

One Form - Multiple Pages - Different Redirect URL

(0) ShareShare
ReportReport
Posted on by 154

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.

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 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

  • Suggested answer
    Community Member Profile Picture
    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

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

    Hi Mouda,

    Could the solution work for you?

    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

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 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans