Understanding the Update Form button action in InfoPath

by S.Y.M. Wong-A-Ton

Learn what the Update Form action on a button in InfoPath does and how you can use it to your advantage to improve the performance of InfoPath browser forms.

For quite some time I did not understand what the Update Form button action was for or what it did, but once I tried it out, I found it to provide some pretty cool functionality for InfoPath browser forms.

You can set the Update Form button action by creating a browser-compatible InfoPath form template, adding a button control to it, and then going to the Properties for the button control. The Update Form button action is located in the Action drop-down list box on the Button Properties dialog box.

Office Online gives the following description of the Update Form button action:

In a form that is designed to be filled out in a Web browser, this action updates form data in an incremental manner.

I used the Update Form button action in an article I wrote about updating SharePoint list items via an InfoPath browser form using the SharePoint Object Model.

In this article, I used the Changed event of fields within a Repeating Table that was bound to a secondary data source of a SharePoint list to be able to update the SharePoint list items. 

The fields in the Repeating Table were set to send data to the server only when necessary for correct rendering of the form. This is the default postback settings on the Browser forms tab for sending changes made to data in fields back to the server.

I used an Update Form action on a button control to be able to make changes to data in the fields of the Repeating Table and have InfoPath remember all of those changes I made in several rows (without posting data back to the server).

When I clicked the button that had the Update Form action set to it, InfoPath sent all of the changes I had made back to the server as one bulk update! Now that’s pretty neat if you want to improve the performance of a browser form. :D

If you are looking for other ways to improve performance of your InfoPath web-based forms, you can check out the blog of the InfoPath Team, who wrote an article series dealing with performance in browser forms.

 Subscribe (RSS | Email)

Related Posts

Comments to this post were closed 30 days after it was published.

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. Usage of techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

Working with InfoPath