David Frette's Blog

Where the mind and SharePoint sometimes meet.

Versioning InfoPath Forms

Posted by David Frette on January 19, 2011

Almost everyone working with InfoPath forms knows that each time they publish a form, it creates a timestamp and a version number for the template. In InfoPath, go to Form Options and you’ll see this dialog:

InfoPath Form Version Dialog

Well, if you need to keep track of the version number for your form, you can make it easy on yourself and others by adding a small field at the bottom of your form. Then in the default value of this field, insert the formula

substring-before(substring-after(processing-instruction()[local-name(.)
  = "mso-infoPathSolution"], 'solutionVersion="'), '"')

Formula for Displaying the version number of a form

Here is a simple screenshot that shows the control

InfoPath Form Version Control

 

And here is what it renders like (screen clipped a lot):

InfoPath version control rendered in InfoPath Forms Services

 

I hope this helps you keep track of InfoPath forms version numbers. I know it will me.

Advertisement

One Response to “Versioning InfoPath Forms”

  1. [...] This post was mentioned on Twitter by SharePoint Buzz. SharePoint Buzz said: RT @davidfrette: Keeping track of InfoPath Forms version number http://bit.ly/fqNKKq #sharepoint #infopath [...]

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

 
Follow

Get every new post delivered to your Inbox.