SPField.GetFieldValueForClientRender method

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 Overridable Function GetFieldValueForClientRender ( _
    item As SPItem, _
    mode As SPControlMode _
) As Object
Dim instance As SPField
Dim item As SPItem
Dim mode As SPControlMode
Dim returnValue As Object

returnValue = instance.GetFieldValueForClientRender(item, _
public virtual Object GetFieldValueForClientRender(
    SPItem item,
    SPControlMode mode


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.

See also


SPField class

SPField members

Microsoft.SharePoint namespace