How to close first modal befor navigating third modal


In OrderListModal page when OrderDetailModal opens and order accepted I want to go third modal “DeliveryProcessModal” but in same time two previous modals should be closed. second modal is easy to close but I dont know how to close first modal in navigating process.


use secondmodalName.hide() in the closing callback of either first or third modal.


Tnx @abhi123 I used ondismess() method on first modal but when I press back button it fails.


glad to help…