Share via


Setformtemplateproperty: Stsadm operation (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Description

Sets the properties of an individual form template. This operation functions similarly to the -o setproperty operation.

Syntax

stsadm -o setformtemplateproperty

[-formid] <Form template ID>

[-filename] <Path to form template file>

-pn <Property name>

-pv <Property value>

Parameters

Parameter name and short form

Value

Required?

Description

formid

A valid template ID, for example, "urn:schemas-microsoft-com:office:infopath:MyFormTemplate:-myXSD-2005-09-22T20-42-56"

No. However, either the form ID or file name must be specified.

ID of the form template file.

filename

A valid file name for the form template file, such as "formtemplate.xsn"

No. However, either the form ID or file name must be specified.

Name of the form template file.

pn

See the Remarks section

Yes

Name of the property for which to set a value.

pv

A valid string value

Yes

Value of the property to be set.

Remarks

The following table describes the values for the pn parameter.

Value

Type

Description

category

A valid string, such as "Category1"

Sets an arbitrary category on the file, which can be used to group the files.