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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

how to navigate to dynamics 365 form gallery's screen, irrespective from which page i come after submitting the form

(0) ShareShare
ReportReport
Posted on by

Once user submit the form , i have used the below js code to show the notification of success

Assessment = {
    showFormNotification: function(executioncontext){
        "use strict";
        var formContext = executioncontext.getFormContext();
        var message = "Your Assessment Request has been successfully raised !!";
        var uniqueIdForInfo = "Shownotification101";
        //in milliseconds
        var displayTime = 15000;
        if(formContext != null)
        {
            //UniqueId can be used when we need to club this functionality with any other functionality.Example: clearnotification
            formContext.ui.setFormNotification(message, 'INFO', uniqueIdForInfo);
            //Clear notification: Here Unique Id can be used
            setTimeout
            (
                function()
                {
                    //Clearning only Info form notification
                    formContext.ui.clearFormNotification(uniqueIdForInfo);
                },
                displayTime
            );
        }

    }
};
now once the user submits the records, they will be navigated back to home screen or from where they tried creating the form, but i want user to navigate the form view screen [ below screen] ,, irrespective  from which page user creates the record,.
pastedimage1637649958076v1.png
i want user ti navigate to this screen
what  js code i need to add in my above code, so that once user submits the form, they will be navigating to dynamics 365 view screen.
I have the same question (0)
  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Please try to add the following code snippet into your JS.

    window.top.location.href = "url";

  • Community Member Profile Picture
    on at

    Hello Nya ,

    I have added this code and it is working, but the problem is before navigating to the target page, the below pop up is coming

    even if the data is saved, still it is asking me " Changes you made may not be saved.', is it possible to disable this pop up?

    pastedimage1637733160527v1.png

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Maybe you can consider to achieve that with Ribbon Workbench.

    pastedimage1637743016742v1.png

    pastedimage1637743032485v2.png

  • Community Member Profile Picture
    on at

    thank you for the help, it worked

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans