trustLevel Attribute

Specifies the trust level of a form template.

Type

  xsf:xdTrustLevel

Parent Elements

Element Description
xDocumentClass The root element of the form definition file (.xsf). Contains all other elements and attributes of the form definition file.

Definition

  <xsd:attribute name="trustLevel" type="xsf:xdTrustLevel" use="optional"></xsd:attribute>

Remarks

If the trustLevel attribute is present along with the requireFullTrust attribute in the form definition file, and the requireFullTrust attribute is set to "yes", then the requireFullTrust attribute takes precedence. A form template that is not permitted full trust (because it lacks proper certificate, installation, or registration) will fail to load in edit mode, and a warning will be displayed. If the form template is permitted full trust, it will load and run properly in the full trust security zone.

The default value is "domain". If the trustLevel attribute is not present, the default value is also "domain".

Example

The following is an example of the trustLevel attribute as it is used in the xDocumentClass element:

  <xsf:xDocumentClass
   xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"
   name="urn:schemas-microsoft-com:myTravelReport"
   author="AuthorName"
   description="Travel Report form for entering travel reports, issues, expenses, etc."
   dataFormSolution="yes"
   solutionVersion = "1.0.0.1"
   productVersion="11.0.5106"
   solutionFormatVersion="1.0.0.0">
   dataFormSolution="yes"
   requireFullTrust="yes"
   trustLevel="restricted"
   trustSetting="manual"
   publishUrl="http://MyServer/InfoPathTemplates/MyTemplate.xsn">
   ...
</xsf:xDocumentClass>