Site Column - Field Type

I always find it difficult to translate my field types when I’m making my site columns declarative. So here’s an overview:

Type in SharePoint Type in XML/Code Options
Single line of text Type=”Text”
Multiple lines of text Type=”Note” Plain Text
Rich Text=”FALSE”

Rich Text
RichText=”True”
RichTextMode=”Compatible”

Enhanced Text
RichText=”TRUE”
RichTextMode=”FullHtml”
Choice Single Choice
Type=”Choice”

Multi-Choice
Type=”MultiChoice”
Drop Down Menu
Format=”Dropdowns”

Radio Buttons or Check Boxes
Format=”RadioButtons”

Let the user add their own value, set the attribute FillInChoice=”TRUE”
Number Type=”Integer” Minimum Value
Min=”0”

Maximum Value
Max=”100”

Decimal Places
Decimals=”2”

Show as Percentage
Percentage=”FALSE”
Currency Type=”Currency” Minimum Value
Min=”0”

Maximum Value
Max=”100”

Decimal Places
Decimals=”2”

Currency Format
LCID=””
Date and Time Type=”DateTime” Date only
Format=”DateOnly”

Date and time
Format=”DateTime”
Yes/No Type=”Boolean” Set the default value by using the binary values:
No=0
Yes=1
Person or Group Single User or Group
Type=”User”

Multiple Users or Groups
Type=”MultiUser”
Allow multiple selections
Type=”MultUser”
Mult=”TRUE”

Allow selection of …
UserSelectionMode=”PeopleOnly”
UserSelectionMode=”PeopleAndGroups”

Limit the option list to a SharePoint Group
UserSelectionScope=”3”
Set it to the ID of the SharePoint Group (Integer value)

Show field
ShowField=”Name”
Presence=”TRUE”
Hyperlink or Picture Type=”URL”

Hyperlink
Format=”Hyperlink”

Picture
Format=”Image”

Lookup

Type="Lookup"

Source
List=”Self”

Field to display
ShowField=”Title”

Allow multivalue
Mult=”TRUE”

Reacties

Populaire posts