Cancel Button in a custom dialog

Discussion created by sherab4 on Jun 1, 2016
Latest reply on Jun 1, 2016 by fclark

How do I cause the window to revert back to Browse mode once the Cancel button has been click in a Custom dialog. At the moment it remains in find mode. the script I am using is attached.