Get current item ID or other field value in an infopath form

Tools >> Data Connections >> Add >> Create a new connection to: Receive Data >> Select SharePoint library or list >> enter the url of the form library (the same address that you published the form to.

Then Select the library you want to access and click Next. Check the “ID ” Field and any other field you would want to retrieve.

At the bottom check *Include data for the active form only*, which means this connection will only retrieve data for the form that is currently open. Click Next and finish creating your data connection.

Then in the Text field properties, you can set this ID or other field as the Default Value.

This entry was posted in InfoPath 2010, SharePoint 2010 and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s