-
Try this in vb.net:
thisXDocument.Submit()
thisXDocument.View.Window.Close(True)
or for JScript:
Application.ActiveWindow.Close(True);
or VB Script
Application.ActiveWindow.Close True
Good luck!
-
Here is another link that should be helpful:
http://office.microsoft.com/en-us/results.aspx?Scope=FX%2CHA%2CHP%2CQZ%2CRC%2CXT&Query=DOM&App=IP
-
I just answered a post I think it has the similar question. Please read the following thread:
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1959
-
Hi Brother Tang,
check out the following list. It does not have the codes, but it will give you a list of InfoPath functions, their descriptions and examples.
http://office.microsoft.com/en-us/assistance/HP011552811033.aspx?
-
When you select the Submitting Forms under Tools, click Enable Submit commands and buttons. Click Submit options, then select Close the form. When the form is published to the SharePoint library and your user uses ''Fill Out This Form'', after they click Submit, the form and application should close.
-
Wonderful. I guess you figure it out before I finished it. :-)
-
Sorry about that, I click the wrong button before I finished. So here we go again.
1. Add a Text Field named name
2. Add a Text Field named department
3. Right click the name field under myFields and select Drop-Down List Box.
4. Right click the department field under myFields and select Text Box
5. Now add your data connection and select those ...
-
Hi Deb,
Welcome to the forum. First you need to create two the scheme.
1. Add a Text Field named name
2. Add a Text Field named department
3. Right click the name field under myFields and select Drop-Down List Box.
4. Right click the department field under myFields and select Text Box
5. Now add your data connection and select those two fields ...
-
Why not just save the form locally? When they are online, they can submit directly. One of the reasons the database submit is not available is because you don't have the primary key.
-
It is mentioned in the Microsoft Office Online: About specifying user roles for forms. It says ''InfoPath checks user roles when you fill out the form, not when you preview it.''
http://office.microsoft.com/en-us/assistance/HP011066051033.aspx
Sorry I should have mentioned that.