AnsweredAssumed Answered

How to override an edit view cancel button

Question asked by Steven Cox on Nov 20, 2018
Latest reply on Nov 30, 2018 by Steven Cox



I'm trying - what I thought was simple - to have a custom module's edit view cancel button navigate to another view. However, it is proving more difficult as even after the navigation, it will jump back to to the previous screen.


The code I'm using in my edit view is:


    onHeaderCancelClick() {

        const otherViewRoute = "Meetings/";


                    url: otherViewRoute,




Stepping through the code, the view will jump to Meetings list view, but then a split second later, it will revert to where it should have been going. Is there a way to make the navigation stick?


I would be happy to add a custom element to the header rather than use cancel (which I can hide) - but I'm not sure ow to do that.