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.
  • Community Member Profile Picture
    on at
    RE: how to navigate to dynamics 365 form gallery's screen, irrespective from which page i come after submitting the form

    thank you for the help, it worked

  • Suggested answer
    Nya Profile Picture
    29,060 on at
    RE: how to navigate to dynamics 365 form gallery's screen, irrespective from which page i come after submitting the form

    Hi,

    Maybe you can consider to achieve that with Ribbon Workbench.

    pastedimage1637743016742v1.png

    pastedimage1637743032485v2.png

  • Community Member Profile Picture
    on at
    RE: how to navigate to dynamics 365 form gallery's screen, irrespective from which page i come after submitting the form

    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

  • Verified answer
    Nya Profile Picture
    29,060 on at
    RE: how to navigate to dynamics 365 form gallery's screen, irrespective from which page i come after submitting the form

    Hi,

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

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

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans