Hi All,
In a following post we will see about
SharePoint Column Field Types.
Which can be used while create Site
Columns .To Create Site Column by using Declarative XML use following link Site Columns .
Single Line of Text:
<Field ID="{FDDC4E38-25E0-4FD9-92E7-D17F34A5AB12}"
description="My Content"
staticname="ContentID"
name="ContentID"
displayname="ContentID"
type="Text"
group="Sample Site Columns"
></Field>
Number:
<Field ID="{13b3652a-d543-465d-91cb-a9d625637855}"
StaticName="Read_Times"
Name ="Read_Times"
DisplayName ="Read_Times"
Description="Read Time count of Item"
Type="Number"
Group ="Sample Site Columns"></Field>
Date Time:
<Field ID="{d076e4d5-c785-4c04-8b56-c1f021721749}"
StaticName="CreateDate"
Name="CreateDate"
DisplayName="Create_Date"
Description="Create Date of Item"
Group="Sample Site Columns"
Type="DateTime"
Format="DateOnly"></Field>
Multiple lines of text:
<Field ID="{2ae59f08-0fb0-4a9c-8a31-a180161b1029}"
StaticName="PublisherDescription"
Name="PublisherDescription"
Description="Publisher Description of Item"
DisplayName="Publisher_Description"
Type="Note"
RichText="FALSE"
NumLines="6"
Group="Sample Site Columns"></Field>
RichText HTML:
<Field ID="{13cd0291-df15-4278-9894-630913e4d2b9}"
StaticName="AccrediterDescription"
Name="AccrediterDescription"
DisplayName="Accrediter_Description"
Description="Accrediter Description of Item"
Type="Note"
NumLines="6"
RichText="TRUE"
RichTextMode="FullHtml"
Group="Sample Site Columns"></Field>
Publishing HTML:
<Field ID="{E2CC0231-FA6C-4F90-839C-118C304DFCF1}"
StaticName="PMediaDescription"
Name="PMediaDescription"
DisplayName="MediaDescription"
Type="HTML"
RichText="TRUE"
RichTextMode="ThemeHtml"
Group="Site Columns"
UnlimitedLengthInDocumentLibrary ="TRUE"></Field>
Publishing Image:
<Field ID="{148e8191-afe7-4422-b1d1-7202eda667f1}"
description="Image 1 link of Item"
staticname="PImageID1"
name="PImageID1"
displayname="Image_ID1"
type="Image"
group="My Site Columns"
richtext="TRUE"
richtextmode="ThemeHtml"></Field>
HyperLink & Image:
<Field ID="{635a2031-2088-4413-b54e-d2af5daf08bf}"
StaticName="ImageAuthor"
Name="ImageAuthor"
DisplayName="Image_Author"
Description="Author Image"
Type="URL"
Format="Image"
Group="Sample Site Columns"></Field>
YES/No Boolean:
<Field ID="{11018312-58f9-4eb0-867d-71298f82d98d}"
Name="isActive"
StaticName="isActive"
DisplayName="isActive"
Description="Select if Item is Active"
Group="Sample Site Columns"
Type="Boolean">
<default>0</default>
</Field>
CHOICES:
<Field ID="{67f8faa4-e3ee-44bf-a3b4-6e7fc9c6b9fe}"
Name="Market"
StaticName="Market"
DisplayName="Market"
Description="Market of the Country"
Group="Sample Site Columns"
Type="Choice">
<choices>
<choice>Gold</choice>
</choices>
</Field>
MultiSelect:
<Field Type="MultiChoice"
DisplayName="Labels_Selected"
FillInChoice="FALSE"
Group="Sample Site Columns"
ID="{2fdf0ba7-0052-4e9f-80f6-e7669ac4ae4f}"
StaticName="LabelsSelected"
Name="LabelsSelected"></Field>
Lookup Columns:
<Field Type="Lookup"
ID="{FE45AC76-C0E2-46C8-A047-E8C43C10315C}"
Name="LU_Country"
StaticName="LU_Country"
DisplayName="LU_Country"
Required="FALSE"
List="Lists/Region Country Master"
ShowField="RollOutCountry"
UnlimitedLengthInDocumentLibrary="FALSE"
Group="Sample Site Columns"></Field>
Multi Lookup Columns:
<Field Type="LookupMulti"
Mult="TRUE"
ID="{85062ACF-315B-460A-B756-2230A5FE082F}"
Name="LU_Language"
StaticName="LU_Language"
DisplayName="LU_Language"
Required="FALSE"
List="Lists/Language Master"
ShowField="Title"
UnlimitedLengthInDocumentLibrary="FALSE"
Group="Sample Site Columns"></Field>
Lookup with Additional Field Lookup column:
<Field Type="Lookup"
ID="{9AA2985D-AA17-4EA2-9556-9B0E112A64F6}"
Name="LU_ApplicationType"
StaticName="LU_ApplicationType"
DisplayName="LU_ApplicationType"
Required="FALSE"
List="Lists/Application Type"
ShowField="ApplicationType"
UnlimitedLengthInDocumentLibrary="FALSE"
Group="Sample Site Columns"></Field>
<Field Type="Lookup"
ID="{668D51C4-804D-43E7-8211-950AE3BCD9A3}"
Name="LU_ApplicationType_ID"
StaticName="LU_ApplicationType_ID"
DisplayName="LU_ApplicationType_ID"
List="Lists/Application Type"
ShowField="ApplicationTypeID"
FieldRef="9AA2985D-AA17-4EA2-9556-9B0E112A64F6"
ReadOnly="TRUE"
UnlimitedLengthInDocumentLibrary="FALSE"
Group="Sample Site Columns"></Field>
Thanks.
Related Post
SharePoint
- Build Automation (CICD) of WebJob in SharePoint Online
- List view render using JSLink with Fabric UI
- Delete Quick Links using Powershell
- SharePoint Interview Questions and Answers..
- Issues:SharePoint Foundation 2013 Prerequisites installation(off line) on Windows Server2012 R2
- Alternate to InfoPath Forms in SharePoint
- Get the Items inside the Folder in document Library in SharePoint 2013 using REST API
- SharePoint 2016 [Beta] Release Date
- SharePoint Modal Dailoge to Open Page
- What is Look up Column and how to use in SharePoint 2010,2013
- People Picker Check User Entry and Resolve
- How to Get User Data from AD (Active Directory) in SharePoint Using C#
- History of SHAREpoINt
- How to Create Application Page in SharePoint using Visual Studio 2010,2013
- Retrieve Site Features in SharePoint
- Weather Webpart by using Yahoo Service in Share Point
- Activate Telnet Client in Windows Server
- Navigate to another Page After Clicking on JavaScript Alert
- How to read List Item Version Collection Programmatically
- How to get Worker Process from Command Prompt
- How to Use DataTable.js in SharePoint webpart
- Adding New Link to PromotedActions Delegate Control in SharePoint 2013
- How to Deploy Master Page in Share Point
- Get Role Definition in SharePoint
0 comments:
Post a Comment