SharePoint 2010/2007 Custom Site Column – Field Type and Options
|
Type (as shown on the Create Column page) |
Field Type |
Notes |
MSDN Links |
|
Single line of text |
Type=”Text” |
|
|
|
Multiple lines of text |
Type=”Note” |
In the Create Column page, can pick the type of text to allow. To enable the different sub-types, you need to set a couple of other attributes on the field element. Plain Text Rich Text Enhanced Text In addition, you can also set the number of lines to display using the NumLine attribute. Further Information on MSDN: |
|
|
Choice (menu to choose from) |
Single Choice Multi-Choice |
Pick the display format for the Choice and Multi-Choice types, respectively: Drop-Down Menu or Combo Box Radio Buttons or Check Boxes Define the options a user can pick from using the Choices element. Below is a skeleton to explain this. <Field Name=”MyOptions” Type=……> If you would like to give the user an option to add their own value, set the attribute FillInChoice=”TRUE”. |
Microsoft.Sharepoint.SPFieldChoice |
|
Number |
Type=”Integer” |
This field type also lets you define: Minimum Value (0 for example) Maximum Value (100 for example) Decimal Places (Default is Automatic, example 2 decimal places) Show as Percentage (Default is False) |
|
|
Currency |
Type=”Currency” |
This field type also lets you define: Minimum Value (0 for example) Maximum Value (100 for example) Decimal Places (Default is Automatic, example 2 decimal places) Currency Format LCID=”3081″ 3081 sets the format English – Australian. For a complete list of Locales, see the MSDN link in the next column. |
|
|
Date and Time |
Type=”DateTime” |
This field also lets you define: Date and Time Format Show the date and time: |
|
|
Yes/No |
Type=”Boolean” |
When setting the default value, you need to use the binary values: No/False = 0 |
|
|
Person or Group |
Single User or Group Multiple Users or Groups |
This field also lets you define: Allow multiple selections Allow selection of People and Groups Choose from Show field If you would also like to show presence (Office Communicator integration required): |
|
|
Hyperlink or Picture |
Type=”URL” |
You can display the URL as a Hyperlink or Picture. Use the Format attribute to pick which one: Hyperlink Picture |
Hi,
Thanks for a great overview!
Just wanted to let you know that the type for a user field witch allows for multiple selections is not of type MultiUser but UserMulti (at least in 2010). Using the wrong field types caused me alot of extra work so it would be great if you updated it:)
Marie
You have mistakes in type of User field.
Is possible set: User or UserMulti (not MultiUser)