Upvote this idea (i.e. currently you can't). A workaround could be to close the first page when transitioning to the second, or simply show the page you want to show when you leave page 2.
Hi Ganesh,
I had the same situation that when the validation returned with some errors I wanted them to display in a second page, with also 2 buttons. Because I found that this wasn't working, closing 2 pages with 1 MF.
I decided to implemented the second page functionality in the first page, and made it visible only when I wanted to display the second page. That works for us. Hopefully you can find a way to do the same for your project.
Good luck!.