Either you can create a condition node (Flow Logic -> Alternative) inside this window.
And display the details only in the true condition node.
Else you can set the condition for the window itself in the condition tab, so that it will be displayed only if the condition is true.
You can write certain code above this if you want to calculate anything based on which the condition is set.
Based on your requirement, I guess, you just need to print the window in the last page.
In that case, you just need to check the respective event in the condition tab for the window. (To be specific, the checkbox at the end of main window must be checked. Then that window will be displayed on the last page.