
Signature
k.Ramana Reddy
http://www.GGKtech.com
> Thank you for this information . . . I believe it's just what I'm looking
> for. However, I don't know where to put it. (Sorry . . . this is new to
[quoted text clipped - 27 lines]
> > > > > > they hit the submit button, which is coded to close the form, the user is
> > > > > > left in InfoPath. Is there a way to close out of InfoPath as well? Thanks!
No. As I mentioned in my last post, I don't see anywhere to put code. It has
a 'Define Action Parameters' button with choices - but no place for code.

Signature
krh
> Hi,
> Do you have any code in your submit button?
[quoted text clipped - 30 lines]
> > > > > > > they hit the submit button, which is coded to close the form, the user is
> > > > > > > left in InfoPath. Is there a way to close out of InfoPath as well? Thanks!
c9ola - 31 Aug 2007 13:18 GMT
I was just going over your reply again and realized you are referring to
closing the form.
You can close the form after submitting by using below code.
> thisXDocument.View.Window.Close(true); (this is in c#)
> XDocument.View.Window.Close(true); (this is in Jscript)
The 'Define Action Parameters' button that I'm using already handles closing
the form. I want to close InfoPath itself. Is there code for that, and
where does it go? Can the 'close' property of the form run a function that
closes InfoPath?

Signature
krh
> No. As I mentioned in my last post, I don't see anywhere to put code. It has
> a 'Define Action Parameters' button with choices - but no place for code.
[quoted text clipped - 33 lines]
> > > > > > > > they hit the submit button, which is coded to close the form, the user is
> > > > > > > > left in InfoPath. Is there a way to close out of InfoPath as well? Thanks!