FieldPrefix element (View)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Obsolete. Returns the Microsoft Office namespace urn:schemas-microsoft-com:office:office#, which is added to every field name for Office compatibility.

<FieldPrefix>
</FieldPrefix>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

None

Parent elements

Numerous

Occurrences

  • Minimum: 0
  • Maximum: Unbounded

Example

The following excerpt from the FldTypes.xml file uses the FieldPrefix element to return the Microsoft Office namespace in defining the rendering pattern for new items of the Threading field type.

<RenderPattern Name="NewPattern" DisplayName="NewPattern">
   <HTML><![CDATA[ <INPUT TYPE=HIDDEN NAME=" ]]></HTML>
   <FieldPrefix />
   <Property Select="Name" />
   <HTML>" VALUE="</HTML>
   <Limit Len="504" StripWS="TRUE" HTMLEncode="TRUE">
      <GetVar Name="Threading" StripWS="TRUE" />
   </Limit>
   <HTML><![CDATA[ "> ]]></HTML>
</RenderPattern>