InfoPath closing without opening form - problem with vbscript - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath closing without opening form - problem with vbscript

Last post 09-23-2024 07:59 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-22-2024 08:32 PM

    InfoPath closing without opening form - problem with vbscript

    I am in a team in a large organisation that supports a number of InfoPath forms. We are having a strange problem with one form in particular since a few weeks ago. We have narrowed it down to the fact that a recent Microsoft Office update that our IT group rolled out, specifically version/update 2402. Basically those PC's that don't have the update can open this form ok, but for those that have the update installed, InfoPath will open briefly, but then close out before the form opens. I admit I'm not an InfoPath expert, but I do know that form references a number of VB scripts. As such, we have narrowed down the issue to one line of code (in a large file of other functions). Specially, it seems be when it does this - "set gobjXDocument = window.external.window.XDocument". The two lines that precede this are "window.returnValue = 1" and "set gobjXDocument = window.dialogArguments" When the line of code I mentioned s commented out, the form opens, but when it's not, we experience what I mentioned above where InfoPath will open, but then close without opening the form. Could anyone assist? Thanks in advance
  • 09-23-2024 07:59 AM In reply to

    Re: InfoPath closing without opening form - problem with vbscript

    It has been many years since I've looked at VBScript for InfoPath... but I'm wondering what happens if you leave that line of code that is resetting the gobjXDocument commented out? I'm curious why that variable is being set and then reset.
    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.