I have seen many solutions on these forums to the problem of closing InfoPath after submit, but none of them seem to work for me.
Of course, I tried using that code everyone provided here, but it just does not work. If I preview it in my own InfoPath, it closes just fine. However, when I or any other user fills it in from SharePoint it only closes the form and not the program.
I am using the following code:
function XDocument::OnSubmitRequest(eventObj)
{
Application.ActiveWindow.Close(true);
}
I am working with InfoPath 2003 sp2.
Is it me? SharePoint? InfoPath? I see that piece of code everywhere so it must work for most, just not for us and it frustrates me.
Thanks in advance.