Referencing Template Version Number within Form

Y

Yerrid

Hello all,

Is there a programatic way to reference the current version number of the
InfoPath's template version number within the form itself?

For instance, when I publish a form template to a SharePoint form library, a
version number is automatically assigned to the template. When the user
clicks "Fill Out This Form", I would like to pull the template version number
and populate it in the form itself.
 
A

Andrew Watt [MVP - InfoPath]

Hello all,

Is there a programatic way to reference the current version number of the
InfoPath's template version number within the form itself?

For instance, when I publish a form template to a SharePoint form library, a
version number is automatically assigned to the template. When the user
clicks "Fill Out This Form", I would like to pull the template version number
and populate it in the form itself.
If you are using JScript add the following to the OnLoad event
handler:

XDocument.UI.Alert("Form template version: " +
XDocument.Solution.Version);

Andrew Watt
MVP - InfoPath
 
Top