Based on the provided code snippets, I assume that the window widget is NOT using an iframe, right?
In this case, both techniques for closing the window should work:
Possible reasons for the problem may be:
- A new jQuery file is loaded on the page after the Window instance has been created. For example, check all partial views, including the one that the Window loads.
- There are several elements with a "CreateWorkflow" ID on the page.
If the problem persists after checking the above hints, please send us a live URL or a runnable example and we will check it. The issue should be quick to fix.
Progress is here for your business, like always. Read more
about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.