This documentation is archived and is not being maintained.

FieldPrefix Element

SharePoint Team Services 1.1

The FieldPrefix element returns the Microsoft Office namespace, urn:schemas-microsoft-com:office:office#, which is added to every field name for Office compatibility.

Syntax

<FieldPrefix>
</FieldPrefix>

Related Elements

Parent Elements
RenderPattern, ScriptQuote

Example

The FieldPrefix element is used in the following selection from FLDTYPES.XML to return the Office namespace.

<RenderPattern Name="NewPattern" DisplayName="NewPattern">
  <HTML>
    <![CDATA[ <INPUT TYPE=HIDDEN NAME=" ]]> 
  </HTML>
  <FieldPrefix /> 
  <Property Select="Name" /> 
  <HTML>" VALUE="</HTML> 
  <Switch StripWS="TRUE">
    <Expr>
      <GetVar Name="Guid" StripWS="TRUE" /> 
    </Expr>
    <Case Value="">
      <GUID /> 
    </Case>
    <Default>
      <GetVar Name="Guid" StripWS="TRUE" /> 
    </Default>
  </Switch>
  <HTML>
    <![CDATA[ "> ]]> 
  </HTML>
</RenderPattern>

Show: