Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.GetFieldValueForClientRender method

SharePoint 2013

When overridden in a derived class, converts the field type value into object for use in client Display, Edit and New item forms.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public virtual Object GetFieldValueForClientRender(
	SPItem item,
	SPControlMode mode
)

Parameters

item
Type: Microsoft.SharePoint.SPItem

An object containing a value of for this type of field.

mode
Type: Microsoft.SharePoint.WebControls.SPControlMode

A value that specifies whether the returned object should be suitable for the Display form, or Edit form, or New form.

Return value

Type: System.Object
An object containing a representation of the field value used for client rendering in the form designated by mode.

Override this method to provide, for example, a JSON array of selected values for a SPFieldMultiChoice field.

Show:
© 2015 Microsoft