how to close infopath after it has been submitted.

P

Paul B

Hi

I have a form that is submitted to portal when a use clicks a button. This
function works fine. What i want is for the form to then close without
getting a dialog box says "do you wish to submit this form" as the form is
has already been submitted and it doesn;t matter if the user presses yes or
no.

I need this as some of the user that will be using the form would be
confused by this.

Thanks

Paul
 
S

Scott L. Heim [MSFT]

Hi Paul,

You will need to use custom script (i.e. on a button) to get this
functionality. Here is some sample VB Script - keep in mind, this has no
error handling option:

XDocument.Submit
Application.ActiveWindow.Close True

I hope this helps!

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Top