
98
❘
CHAPTER 5 Custom Field types, Content types, and list deFinitions
CLASS DESCRIPTION
SPFieldMultiLineText
A field type that supports multiple lines of text
SPFieldNumber
A field type that supports only numeric data
SPFieldRatingScale
A field type that supports rating scales
SPFieldText
A field type that supports a single line of data (up to 255 characters)
SPFieldUrl
A field type that supports URLs
SPFieldUser
A field type that supports users
The eld class determines which control is used to render the eld value in display, add, and edit
modes, how a control is rendered in a mobile view, validation, code to be executed after the column
is added, updated, or deleted on a list, default values, and various other details about a eld’s value.
The Rendering Control Class and the Rendering Template
With the rendering template, the rendering control class is used to render your eld in display, new,
and edit modes but not in the list view. The rendering template is a user control that has at least one
template dened for rendering the eld but can have multiple rendering templates dened. It is typical
to have at least a display (read-only) template and an edit template.
Custom XSLT Style Sheet
As mentioned, the rendering control and templates handle only rendering the eld in the display,
add, and edit list forms. Rendering the contents of the eld when viewing a list in list view mode
is ha ...