-
In the button properties, please change the dropdown box from "Submit" to "Rules and Custom Code" and then set up the rules.
-
Do you need to use code for this? It's a built-in feature with a checkbox on the Browser tab of the Form Options menu. If your form is not browser-enabled, I would think you could add a Refresh rule to your Submit "button" that refreshes any or all data connections before the submit action itself.
-
Submitting the data from the form to the DB is much more difficult than just displaying data in the from from a DB. What happens when you try it? You create the form using the Database template and tie the main data source to the DB connection. You then either just show the entire data set by dragging from the data source ...
-
"Close the form" is one of the standard actions in the Rules box and is even available for browser forms. You really don't see it anywhere when clicking "add action"? I use the Close action in every form I make right after the submit so that it closes cleanly without any Save prompts.
-
Hi all,
Just wondering that if one wanted to populate a drop down list from a datasource not available through an InfoPath datasource (in my case Active Directory) how you would go about that? It seems that through managed c# code I can't get access to the "Populate List From:" property?
-
I dont have a 'close the form action'? All I ahve is show a dialog box message, show a dialog box expression, switch views, set a field's value, query using a data connection, submit using a data connection, open a new form to fill out. I am using Infopath 2007 SP1.
-
I fixed this....I have 5 views and had to change this drop down in all 5 views before I published. Seems like a dumb mistake, ....I sure hope 2007 doesn't have these types easy pitfalls.
-
Thanks. This is what I followed setting everything up. All seems to be fine. I can retrieve data from the list fields but submitting is giving me the error mentioned in my first post.
Lou
-
In your rules screen after the submit action, add another action. Select the action close the form. You can check/uncheck the box if you want the user to save the form or not.
-
Here is a good instruction on how to push InfoPath items into a SharePoint list.
http://blogs.msdn.com/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx