Close webdialog from a button that calls a webpage

I have a button on a page panel which sits on a webdialog. On one of the pages, I have a button that calls a webpage, but when I do that, the webdialog remains open. I need the webdialog to close before I call the webpage?

Hi John - if I understand correctly, you want to ‘click’ on a button in an open dialog - have it close the dialog, while opening another page? What happens then you add “Self.Close()” as the last method in your buttons action?

1 Like

As @William_Reynolds says, calling Self.Close from a WebDialog will close it. If you also want to close the page before showing the next one, you can call Session.CurrentPage.Close.

Self.Close // Closes the WebDialog
Session.CurrentPage.Close // Closes the WebPage
WebPage2.Show