Export (0) Print
Expand All

inputScope Element

Office 2007

Defines an input scope setting.

Usage


<inputScope
	name="xsd:string"
	caption="xsf:xdTitle"
	expression="xsd:string"
/>

Element Information

Element type xsd:complexType
Namespace xsf2

Elements and Attributes

Parent Elements

ElementDescription
inputScopesContains inputScope elements that specify input scope settings.

Child Elements

ElementDescription
wordsContains one or more word elements that specify the list of words or phrases defined for a custom phrase list input scope definition.

Attributes

AttributeTypeRequiredDescriptionPossible Values
namexsd:stringRequiredSpecifies the name to use to identify a custom Input Scope in the manifest.xsf file.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
captionxdTitleOptionalSpecifies the caption used to identify a custom Input Scope in the InfoPath Design mode user interface.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
expressionxsd:stringOptionalSpecifies the regular expression pattern to match for a regular expression custom Input Scope definition.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String

Definition


<xsd:element name="inputScope">
    <xsd:complexType>
       <xsd:sequence>
          <xsd:element ref="xsd:words" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
      <xsd:attribute name="name" type="xsd:string" use="required" />
      <xsd:attribute name="caption" type="xsf:xdTitle" use="optional" />
      <xsd:attribute name="expression" type="xsd:string" use="optional" />
      <xsd:anyAttribute processContents="skip" />
    </xsd:complexType>
</xsd:element>

Remarks

For more information on input scope settings, search InfoPath 2007 Help for "Input scopes for InfoPath controls".

Example

The following is an example of the inputScopes parent element with an inputScope child element that defines an input scope with a regular expression.


<xsf2:inputScopes>
   <xsf2:inputScope caption="3 letters" name="__is_1" expression="\d\d\d"></xsf2:inputScope>
</xsf2:inputScopes>

Remarks

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.



Community Additions

ADD
Show:
© 2014 Microsoft