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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top